mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-10-27 13:12:20 +08:00
added safeguards for callbacks in loading saving
This commit is contained in:
1 parent
2e30dd94bc
commit
3fc8166f51
1 file changed
+1
-1
+1
-1
@@ -96,7 +96,7 @@ def main():
|
||||
x, y = batch
|
||||
x = x.view(x.size(0), -1)
|
||||
|
||||
y_hat = model(x)
|
||||
y_hat = trained_model(x)
|
||||
|
||||
# acc
|
||||
labels_hat = torch.argmax(y_hat, dim=1)
|
||||
|
||||
Reference in new issue
Block a user