Skip to content

Commit

Permalink
added class method
Browse files Browse the repository at this point in the history
  • Loading branch information
madhavkhoslaa committed Aug 24, 2019
1 parent 9b9bc49 commit 9746b28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loss/diceloss.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

class Loss:
@classmethod
def dice_loss(input, target):
def dice_loss(cls, input, target):
smooth = 1.
iflat = input.view(-1)
tflat = target.view(-1)
Expand Down

0 comments on commit 9746b28

Please sign in to comment.