Skip to content

Bug fix: gettiem by none index#34877

Merged
hbwx24 merged 2 commits intoPaddlePaddle:developfrom
zyfncg:slice_none_zyf
Aug 13, 2021
Merged

Bug fix: gettiem by none index#34877
hbwx24 merged 2 commits intoPaddlePaddle:developfrom
zyfncg:slice_none_zyf

Conversation

@zyfncg
Copy link
Contributor

@zyfncg zyfncg commented Aug 13, 2021

PR types

Bug fixes

PR changes

APIs

Describe

Fix a bug of slice by none index in dygraph mode

Example:

# x.shape [2, 2]
y = x[None, None, :, :, None]
y.shape
# expect result:
[1, 1, 2, 2, 1]
# now:
[1, 1, 1, 2, 2]

Copy link
Contributor

@hbwx24 hbwx24 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 ff4bdac into PaddlePaddle:develop Aug 13, 2021
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