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

[convert_to_mixed_precision] fallback to fp32 when encounter circle #47902

Merged
merged 4 commits into from
Nov 15, 2022

Conversation

jiweibo
Copy link
Contributor

@jiweibo jiweibo commented Nov 11, 2022

PR types

Others

PR changes

Others

Describe

当遇到环时,涉及算子fallback fp32

@paddle-bot
Copy link

paddle-bot bot commented Nov 11, 2022

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@jiweibo jiweibo changed the title fallback to fp32 when encounter circle [convert_to_mixed_precision] fallback to fp32 when encounter circle Nov 11, 2022
var_names_in_circles_.insert(name);
}
for (auto& name : var_names_in_circles_) {
LOG(INFO) << name
Copy link
Contributor

Choose a reason for hiding this comment

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

LOG(INFO) ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

是的,显示打印

for (auto* in_node : op_node->inputs) {
if (!in_node->IsVar()) continue;
auto* real_node = GetRealVarNode(block_idx, in_node);
if (in_node->Var()->GetType() != VarType::LOD_TENSOR) {
Copy link
Contributor

Choose a reason for hiding this comment

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

why tensor array input not support?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

不支持tensor array,只支持DenseTensor

@jiweibo jiweibo merged commit a00aebe into PaddlePaddle:develop Nov 15, 2022
@jiweibo jiweibo deleted the circle branch November 15, 2022 05:55
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