mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-10-24 12:41:49 +08:00
updated args
This commit is contained in:
1 parent
e3f96d6f3a
commit
89a79a5d3c
1 file changed
-2
@@ -70,7 +70,6 @@ class ExampleModel(RootModule):
|
||||
|
||||
# calculate loss
|
||||
loss_val = self.loss(y, y_hat)
|
||||
print(loss_val)
|
||||
|
||||
# tqdm_dic = {'tng_loss': loss_val.item()}
|
||||
# return loss_val, tqdm_dic
|
||||
@@ -91,7 +90,6 @@ class ExampleModel(RootModule):
|
||||
y_hat = self.forward(x)
|
||||
|
||||
loss_val = self.loss(y, y_hat)
|
||||
print(loss_val)
|
||||
|
||||
# acc
|
||||
labels_hat = torch.argmax(y_hat, dim=1)
|
||||
|
||||
Reference in new issue
Block a user