added safeguards for callbacks in loading saving
This commit is contained in:
parent
2e30dd94bc
commit
3fc8166f51
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue