Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. class custom_loss(nn.Module):
  2. def __init__(self):
  3. super(custom_loss, self).__init__()
  4.  
  5. def forward(self, output, target):
  6. return F.cross_entropy(output, target)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement