mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-09 11:32:07 +08:00
added safeguards for callbacks in loading saving
This commit is contained in:
+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