Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

[Feature Request] batchwise gather_nd/scatter_nd #9998

@ShownX

Description

@ShownX

Description

Assuming I have a data tensor X and indices tensor Y: X has a shape (batch, N, 3) and Y has a shape (batch, 1, M), I hope there is a new operation can do batch-wise gather_nd and scatter_nd using the index within the batch and gather the data to new tensor (batch, M, 3)

Implementation

Forwarding...

gathered = []
for i in range(X.shape[0]):
     gathered.append(nd.gather_nd(X[i], Y[i]))
return nd.concat(*gathered)
``

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions