We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c195e3 commit b1a9102Copy full SHA for b1a9102
torch_em/loss/dice.py
@@ -89,6 +89,7 @@ def __init__(self, channelwise=True, eps=1e-7, reduce_channel="sum"):
89
super().__init__()
90
self.channelwise = channelwise
91
self.eps = eps
92
+ self.reduce_channel = reduce_channel
93
94
# all torch_em classes should store init kwargs to easily recreate the init call
95
self.init_kwargs = {"channelwise": channelwise, "eps": self.eps, "reduce_channel": self.reduce_channel}
0 commit comments