Skip to content

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