-
Hi all, Is it possible to define your own grad operator that satisfies certain user-defined rules (e.g. chain rule, product rule, etc.)? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Could you say more about what you have in mind? The build-in Or perhaps you're asking whether you can define your own derivative rule for a function? If so, this might be helpful: https://jax.readthedocs.io/en/latest/notebooks/Custom_derivative_rules_for_Python_code.html |
Beta Was this translation helpful? Give feedback.
-
To make it clearer, suppose I would like to define an operator |
Beta Was this translation helpful? Give feedback.
-
I think this works! Thank you very much :) |
Beta Was this translation helpful? Give feedback.
Is something like this what you have in mind?