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. |
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: