Skip to content

Commit

Permalink
Update gather_p pywrapper.
Browse files Browse the repository at this point in the history
  • Loading branch information
tongxin committed Apr 18, 2022
1 parent 21565b1 commit b2419b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/paddle/autograd/primops.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def slice_assign(x, y, axis, starts, ends, strides, out=None):
return out


@REGISTER_FN('gather_p', 'X', 'Y')
@REGISTER_FN('gather_p', 'X', 'IndexTensor', 'Y')
def gather(x, indextensor, axis, out=None):
attrs = {'axis': axis}
helper = LayerHelper('gather_p', **locals())
Expand Down

0 comments on commit b2419b6

Please sign in to comment.