Skip to content

Conversation

@hbwx24
Copy link
Contributor

@hbwx24 hbwx24 commented Sep 15, 2021

PR types

Bug fixes

PR changes

APIs

Describe

  • 支持numpy.ndarray索引
  • 优化联合索引的报错信息:
mask = np.array([1, 0, 1, 0], dtype=bool)
print("mask index 1 : ", x_pd_2d[x_pd_2d[1, :], mask])

修改前:

1861d9f3b942fa499b024aa4c4a21eaf

修改后:

image

@paddle-bot-old
Copy link

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

Copy link
Contributor

@chenwhql chenwhql left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hbwx24 hbwx24 merged commit 9f588cc into PaddlePaddle:develop Sep 15, 2021
AnnaTrainingG pushed a commit to AnnaTrainingG/Paddle that referenced this pull request Sep 29, 2021
* support numpy.ndarray index.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants