You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Gather/Slice/StridedSlice Gradients Support in the C++ API #9645
I noticed that there is currently no gradient support in the C++ API for the gather, slice, and strided slice ops. Would it be too difficult to add support for those gradient ops? I am asking because they are ops very frequently used in the context of machine learning models and without them building ML models can be unnecessarily complicated.
Thank you!
P.S. I have noticed that the Python API implementation of the gather op gradient uses indexed slices, but I am not sure if that is entirely necessary and can thus probably also be supported in the C++ API.
I think this issue deserves a discussion related to indexed slices and their usefulness. My impression is that they are only used in the "gather" op gradient and whenever used in other contexts, they are almost always converted to full tensors. Is that true? In that case, is it really useful having a special "indexed slices" data structure?
Adding @martinwicke (RE: C++ API needs for TensorFlow). It looks like StridedSlice and Slice are supported by the merged PRs above; is Gather still lacking?
Activity
skye commentedon May 4, 2017
@suharshs
eaplatanios commentedon May 4, 2017
I think this issue deserves a discussion related to indexed slices and their usefulness. My impression is that they are only used in the "gather" op gradient and whenever used in other contexts, they are almost always converted to full tensors. Is that true? In that case, is it really useful having a special "indexed slices" data structure?
suharshs commentedon May 9, 2017
@keveman Can you comment about indexedslices? Or cc someone who knows more about that?
Thanks!
C++ gradient for StridedSlice
C++ gradient for StridedSlice
C++ gradient for Slice
C++ gradient for Slice (#17592)
dynamicwebpaige commentedon Nov 7, 2019
Adding @martinwicke (RE: C++ API needs for TensorFlow). It looks like
StridedSliceandSliceare supported by the merged PRs above; isGatherstill lacking?tilakrayal commentedon Sep 24, 2022
@eaplatanios,
Respected PR's were merged and closed. Could you please check the PR and confirm if the issue got resolved. Thank you!
google-ml-butler commentedon Oct 1, 2022
This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you.
google-ml-butler commentedon Oct 8, 2022
Closing as stale. Please reopen if you'd like to work on this further.