Skip to content

Commit 3a2050e

Browse files
timothyn617KfacJaxDev
authored andcommitted
Remove invalid type check.
PiperOrigin-RevId: 844769360
1 parent 406b21f commit 3a2050e

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

examples/losses.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,6 @@ def softmax_cross_entropy(
9494

9595
if register_loss:
9696

97-
if not isinstance(weight, float):
98-
raise NotImplementedError("Non-constant loss weights are not currently "
99-
"supported.")
100-
10197
registration_module.register_softmax_cross_entropy_loss(
10298
logits,
10399
targets=labels,

0 commit comments

Comments
 (0)