Skip to content

Commit b1a9102

Browse files
authored
Update dice.py (#220)
1 parent 2c195e3 commit b1a9102

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

torch_em/loss/dice.py

+1
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ def __init__(self, channelwise=True, eps=1e-7, reduce_channel="sum"):
8989
super().__init__()
9090
self.channelwise = channelwise
9191
self.eps = eps
92+
self.reduce_channel = reduce_channel
9293

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

0 commit comments

Comments
 (0)