Skip to content

Commit

Permalink
Update dice.py (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
anwai98 committed Mar 4, 2024
1 parent 2c195e3 commit b1a9102
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions torch_em/loss/dice.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ def __init__(self, channelwise=True, eps=1e-7, reduce_channel="sum"):
super().__init__()
self.channelwise = channelwise
self.eps = eps
self.reduce_channel = reduce_channel

# all torch_em classes should store init kwargs to easily recreate the init call
self.init_kwargs = {"channelwise": channelwise, "eps": self.eps, "reduce_channel": self.reduce_channel}
Expand Down

0 comments on commit b1a9102

Please sign in to comment.