Skip to content
Discussion options

You must be logged in to vote

Can you add more information about the shape of the inputs and outputs of physics_pred? It's also not clear to me what kind of derivative you're interested in: do you want the element-wise [dy/dx0, dy/dx1...], or if y is a vector do you want the matrix of derivatives {dyi/dxj}? Or, given that y might be a vector of the same length as x, do you want element-wise derivatives [dy0/dx0, dy1/dx1,...]?

It would be most useful if you could edit your question to add a minimal reproducible example, such that we could run your code and see the same outputs that you're seeing, rather than just guessing at what your function might do. Note the "minimal" here does not imply giving us your entire neura…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@lucabeetz
Comment options

@jakevdp
Comment options

@krzysztofrusek
Comment options

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