Differentiable Max and folding: Can't take the gradients of maximum$108, which depend on intermediate values. Use a scan (which saves intermediate results) instead #6170
Unanswered
soufianekhiat
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I try to got the adjoint (gradient) of a function using max, I got this message:
What is this "scan" we are talking about?
I could try to have "differentiable" max by replacing:
But I wasn't able to find a neat way to implement it.
Let say I have a RDom and a Func I want to have something like:
or
On Mathematica that would be something like:
Which will generate
For now I wasn't able to find a to to implement this strategy to explore different scheduling like pyramide:
vs
Beta Was this translation helpful? Give feedback.
All reactions