Open GiggleLiu opened 6 days ago
perhaps make a PR on OMEinsum.jl with your rule?
perhaps make a PR on OMEinsum.jl with your rule?
Yeah, this is exactly what we were doing. @vchuravy mentioned that there are something needs to be documented, e.g.
shadow
correctly.y
is mutable, and also returned by the function.Do you want to add more? @vchuravy
oh yeah for sure we definitely need more docs on custom rules.
Since you went through the first time process recently, would you be interested in giving it a go?
I think here would be the place to add text: https://github.com/EnzymeAD/Enzyme.jl/blob/main/examples/custom_rule.jl
@vchuravy got the following code for differentiation the
einsum!
function in OMEinsum work. He also pointed out that the relevant documentation could be improved. Hope this code snippet helps.The function signature of
einsum!
isThe input
y
is directly changed, and the return value is the same asy
.