-
Notifications
You must be signed in to change notification settings - Fork 74k
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
Optimizing slice of variable not possible #22059
Comments
I debugged this problem: There would be multiple solutions to this problem:
|
I cannot quite understand what are the reasons for this to not be implemented? |
@Hoeze Is this still an issue? Thanks! |
@jvishnuvardhan Yes, the issue is still the same |
Are there any news on this? The implementation of this would be helpful for us as well |
Hi @rmlarsen, is some extension to lift this limitation on the TensorFlow roadmap? Applying an optimizer to a slice of a variable would unblock quite a few more flexible approaches to training certain classes of models. |
@Hoeze ! I was able to replicate the issue in 2.11 and TF Nightly 2.12.0-dev20221215. Thank you! |
Are there any updates on this ? |
Hi, any updates about this issue? I'm using a library for Knowledge Graph Embedding models based on Tensorflow to develop an explainability gradient-based method by tracking the influence of single training samples. Given the high number of parameters of such models I think it would be very useful for Tensorflow to support the gradient computation of only a subset of training variables. |
Hi, Thank you for opening this issue. Since this issue has been open for a long time, the code/debug information for this issue may not be relevant with the current state of the code base. The Tensorflow team is constantly improving the framework by fixing bugs and adding new features. We suggest you try the latest TensorFlow version with the latest compatible hardware configuration which could potentially resolve the issue. If you are still facing the issue, please create a new GitHub issue with your latest findings, with all the debugging information which could help us investigate. Please follow the release notes to stay up to date with the latest developments which are happening in the Tensorflow space. |
Actually, it seems to still be an issue, even running with the nightlies |
Applying the gradient of a variable slice currently results in a
NotImplemented
error of tf.train.Optimizer.The following two examples are working:
The following example throws an error:
The error:
System information
The text was updated successfully, but these errors were encountered: