We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 406b21f commit 3a2050eCopy full SHA for 3a2050e
examples/losses.py
@@ -94,10 +94,6 @@ def softmax_cross_entropy(
94
95
if register_loss:
96
97
- if not isinstance(weight, float):
98
- raise NotImplementedError("Non-constant loss weights are not currently "
99
- "supported.")
100
-
101
registration_module.register_softmax_cross_entropy_loss(
102
logits,
103
targets=labels,
0 commit comments