Skip to content

Commit

Permalink
Mark randn! as inactive
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Apr 1, 2024
1 parent b794cf4 commit 849a237
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/internal_rules.jl
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ end
function EnzymeRules.inactive(::typeof(Random.randn), args...)
return nothing
end
function EnzymeRules.inactive(::typeof(Random.randn!), args...)
return nothing
end
function EnzymeRules.inactive(::typeof(Random.default_rng), args...)
return nothing
end
Expand Down

0 comments on commit 849a237

Please sign in to comment.