Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix reshape when shape is a number #35016

Merged
merged 1 commit into from
Aug 19, 2021
Merged

fix reshape when shape is a number #35016

merged 1 commit into from
Aug 19, 2021

Conversation

parap1uie-s
Copy link
Contributor

@parap1uie-s parap1uie-s commented Aug 19, 2021

PR types

Bug Fixes

PR changes

OPs

Describe

a = paddle.to_tensor(np.random.randn(10, 10))
a.reshape(-1) # 报错,但错误不明显,提示`out`未被定义
a.reshape([-1]) # correct

@paddle-bot-old
Copy link

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

@parap1uie-s
Copy link
Contributor Author

看起来是trt导致CI挂掉了,和本变更无关,辛苦看一下

Copy link
Contributor

@wanghuancoder wanghuancoder left a comment

Choose a reason for hiding this comment

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

LGTM

@wanghuancoder wanghuancoder merged commit 866c1ea into PaddlePaddle:develop Aug 19, 2021
@parap1uie-s parap1uie-s changed the title fix reshape when is a number fix reshape when shape is a number Aug 19, 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