"git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "1221b28eac1801dd759e8d1df9fc9a2a998b41ed"
Unverified Commit 4bf70f09 authored by Harsh Sinha's avatar Harsh Sinha Committed by GitHub
Browse files

[Bugfix] issue #3527 (#3528)

* Fix issue 3527

* Changed default device

* Added g to device
parent 8dbf3a47
......@@ -177,6 +177,7 @@ for epoch in range(10):
for g, x, y in test_loader:
x = x.to(device)
y = y.to(device)
g = [g_i.to(device) for g_i in g]
out = model(g, x)
hit += (out.max(-1)[1] == y).sum().item()
tot += len(y)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment