Skip to content

2nd order derivative is returning a Traced array with DynamicJaxprTrace instead of Traced array with BatchTrace #17465

Answered by jakevdp
pranavps-creator asked this question in Q&A
Discussion options

You must be logged in to vote

I think the second derivative is expected to be zero in this case, because your operation is a sequence of matmuls and relus: matmul is linear (so its second derivative is zero) and relu has a constant gradient everywhere that the gradient is defined (so its second derivative is zero everywhere).

A sequence of operations with zero second derivative will result in a function with zero second derivative.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@pranavps-creator
Comment options

@jakevdp
Comment options

Answer selected by pranavps-creator
@pranavps-creator
Comment options

@jakevdp
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants