-
Notifications
You must be signed in to change notification settings - Fork 74.7k
C API Locking prevents custom gradient definition #48767
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
comp:core
issues related to core part of tensorflow
stat:contribution welcome
Status - Contributions welcome
type:bug
Bug
Comments
Thanks for reporting the issue! |
Please feel free to send a PR! |
I can, but what's the preferred solution? Providing and exposing a |
Exposing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
comp:core
issues related to core part of tensorflow
stat:contribution welcome
Status - Contributions welcome
type:bug
Bug
I am trying to add custom gradient support to the Java bindings (tensorflow/java#292). This is currently being prevented by the fact that
TF_AddGradientsWithPrefix
requires a lock on the graph, but so do any operation creation methods (i.e.TF_NewOperation
), so it is impossible to create ops in gradient functions.Is there a way I can get around this? I am considering calling
TF_NewOperationLocked
directly but I assume the locks are there for a reason.The text was updated successfully, but these errors were encountered: