Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Is there a way to figure out if an NDArray is trainable/has a gradient? #19414

Answered by szha
theRoughCode asked this question in Q&A
Discussion options

You must be logged in to vote

There isn't a direct way to access this information at the moment. It can be found in the backward operators as the req variable but it's not easy to tie this back to an NDArray.

What do you need this information for?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@theRoughCode
Comment options

Answer selected by theRoughCode
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