Skip to content

Commit

Permalink
Set more functions as non-differentiable
Browse files Browse the repository at this point in the history
  • Loading branch information
mofeing committed Mar 28, 2024
1 parent da24bf8 commit dcf9808
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion ext/EinExprsChainRulesCoreExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,23 @@ module EinExprsChainRulesCoreExt
using EinExprs
using ChainRulesCore

@non_differentiable einexpr(::Any...)
for f in [
:head,
:args,
:nargs,
:inds,
:branches,
:leaves,
:suminds,
:parsuminds,
:einexpr,
:sumtraces,
:indshistogram,
:hyperinds,
:neighbours,
:select,
]
@eval @non_differentiable EinExprs.$f(::Any...)
end

end

0 comments on commit dcf9808

Please sign in to comment.