Way to surface auxiliary data in custom gradient? #5611
Unanswered
dieterichlawson
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I am having a similar problem. Did you find any good way to do this? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a custom gradient implementation that computes the gradient of a fixed point operation, very similar to the one in the JAX docs. I would like to output the number of iterations of
fixed_point
used to compute the gradient, but I see no easy way to return auxiliary data from the custom gradient of a function and surface it when the function is used in composition with a bunch of others (e.g. inside a big model). Are there any sanctioned ways to do this?Beta Was this translation helpful? Give feedback.
All reactions