Skip to content

Gather/Slice/StridedSlice Gradients Support in the C++ API #9645

Closed

Description

@eaplatanios

Hi,

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.

Activity

  1. skye commented on May 4, 2017

    @skye
    Contributor
  2. added
    type:feature
    on May 4, 2017
  3. added
    stat:contribution welcome
    on May 4, 2017
  4. eaplatanios commented on May 4, 2017

    @eaplatanios
    ContributorAuthor

    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?

  5. suharshs commented on May 9, 2017

    @suharshs

    @keveman Can you comment about indexedslices? Or cc someone who knows more about that?
    Thanks!

  6. added a commit that references this issue on Jun 26, 2018
  7. dynamicwebpaige commented on Nov 7, 2019

    @dynamicwebpaige
    Contributor

    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?

  8. self-assigned this
    on Mar 10, 2022
  9. removed their assignment
    on Mar 29, 2022
  10. tilakrayal commented on Sep 24, 2022

    @tilakrayal
    Contributor

    @eaplatanios,
    Respected PR's were merged and closed. Could you please check the PR and confirm if the issue got resolved. Thank you!

  11. added
    stat:awaiting response
    on Sep 24, 2022
  12. self-assigned this
    on Sep 24, 2022
  13. google-ml-butler commented on Oct 1, 2022

    @google-ml-butler

    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.

  14. added
    stale
    on Oct 1, 2022
  15. google-ml-butler commented on Oct 8, 2022

    @google-ml-butler

    Closing as stale. Please reopen if you'd like to work on this further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

stalestat:awaiting responsestat:contribution welcometype:feature

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions