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 5e19e3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/losses/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ end
_check_sizes(ŷ, y) = nothing # pass-through, for constant label e.g. y = 1

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

0 comments on commit 5e19e3c

Please sign in to comment.