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

[xpu] fix fc and resnet50 pass bugs, model: structextV1, resnet50. #10332

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

Conversation

yunyipower
Copy link
Contributor

PR devices

XPU

PR types

Bug fixes

PR changes

PASS

Description

fix bugs of fc and resnet50 pass

@paddle-bot
Copy link

paddle-bot bot commented Jul 5, 2023

Thanks for your contribution!

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 +53 to +58
int check_product = 1;
for (unsigned int i = 0; i < mul_y_shape.size(); ++i) {
check_product *= mul_y_shape[i];
}
return (mul_y_shape.size() == 2 && !op_desc.GetAttr<bool>("trans_x") &&
check_product > 0);
Copy link
Collaborator

Choose a reason for hiding this comment

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

如果是为了判断 mul_y 是 weight,可以在 38 行加 assert_is_persistable_var

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants