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

tmp:fix bugs for vis-formula; test=develop #10528

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

TR666
Copy link
Contributor

@TR666 TR666 commented Jun 26, 2024

PR devices

XPU

PR types

Bug fixes

PR changes

OP

Description

临时修复vis-公式模型的一些bug,基于一下pr:
https://github.com/PaddlePaddle/Paddle-Lite/pull/10527/files
https://github.com/PaddlePaddle/Paddle-Lite/pull/10431/files

Copy link

paddle-bot bot commented Jun 26, 2024

Thanks for your contribution!

@@ -35,7 +35,7 @@ static void GetBroadcastDimsArrays(const DDim &x_dims,
};

CHECK_GE(axis, 0);
CHECK_LT(axis, max_dim);
CHECK_LE(axis, max_dim);
Copy link
Collaborator

Choose a reason for hiding this comment

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

这里为啥可以到 max_dim ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

int max_dim = (std::max)(dim_x.size(), dim_y.size()); int axis = std::abs(static_cast<int>(dim_x.size() - dim_y.size()));
但是这里出现了dim_x.size() = 0 的情况,导致axis= 1 && max_dim =1,并且x还并不是一个0dim的scalar,暂时没有追到根因,这里先放开一下供业务临时使用,暂不合入

@CLAassistant
Copy link

CLAassistant commented Sep 22, 2024

CLA assistant check
All committers have signed the CLA.

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.

3 participants