@@ -91,7 +91,7 @@ class CoolModel(pl.LightningModule):
# OPTIONAL
x,y=batch
y_hat=self.forward(x)
return{'val_loss':self.my_loss(y_hat,y)}
return{'val_loss':F.cross_entropy(y_hat,y)}
defvalidation_end(self,outputs):
# OPTIONAL
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.