Skip to content

Conversation

shentanyue
Copy link
Collaborator

No description provided.

@paddle-bot
Copy link

paddle-bot bot commented Oct 31, 2022

Thanks for your contribution!

@shentanyue shentanyue closed this Nov 1, 2022
@shentanyue shentanyue reopened this Nov 1, 2022
Copy link
Collaborator

@zhupengyang zhupengyang left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +26 to +28
std::vector<int32_t> GetShape(core::Operand* input_operand,
core::Operand* output_operand,
uint32_t shape_count) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

为什么需要重新推导,直接从 output_operand 中取就可以吧?已经在 PrepareReshape 中推导过了啊

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

之前是PrepareReshape没有对Dynamic Shape的场景做处理,Ascend内部就单独做推导了,不过现在看来好像可以把这段逻辑迁移过去。
后面我看下吧。

@shentanyue shentanyue merged commit cf99672 into PaddlePaddle:release/v2.12 Nov 1, 2022
@shentanyue shentanyue deleted the ascend_2.12 branch November 1, 2022 04:31
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