Skip to content

Commit 8d80937

Browse files
committed
Fix test
1 parent 7984cd8 commit 8d80937

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/metrics/test_metric.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class B(DummyList):
100100

101101
b = B()
102102
assert isinstance(b.x, list) and len(b.x) == 0
103-
b.x.append(torch.tensor(5))
103+
b.x = torch.tensor(5)
104104
b.reset()
105105
assert isinstance(b.x, list) and len(b.x) == 0
106106

0 commit comments

Comments
 (0)