softened-similarity-learning icon indicating copy to clipboard operation
softened-similarity-learning copied to clipboard

test issue

Open bainianjie opened this issue 4 years ago • 2 comments

It happened this issue when I was running test.py. Could you help me? File "test.py", line 80, in evaluate accuracy = (all_labels == test_labels).sum().item() / len(all_labels) RuntimeError: The size of tensor a (3368) must match the size of tensor b (19732) at non-singleton dimension 0

bainianjie avatar Nov 06 '20 14:11 bainianjie

modify test.py line 75 change dim=1 to dim=0

chongyangwang-song avatar Nov 25 '20 06:11 chongyangwang-song

It happened this issue when I was running test.py. Could you help me? File "test.py", line 80, in evaluate accuracy = (all_labels == test_labels).sum().item() / len(all_labels) RuntimeError: The size of tensor a (3368) must match the size of tensor b (19732) at non-singleton dimension 0

modify test.py line 75 change dim=1 to dim=0

chongyangwang-song avatar Nov 25 '20 06:11 chongyangwang-song