Skip to content

Commit

Permalink
Mark check_sizes as inactive
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed May 14, 2024
1 parent 546ff16 commit 1d2052c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/losses/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@ end
_check_sizes(ŷ, y) = nothing # pass-through, for constant label e.g. y = 1

ChainRulesCore.@non_differentiable _check_sizes(ŷ::Any, y::Any)
import Enzyme
Enzyme.EnzymeRules.inactive(::typeof(_check_sizes), args...) = true

0 comments on commit 1d2052c

Please sign in to comment.