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

[NewIR]new ir support yaml backend config #56570

Merged
merged 5 commits into from Aug 25, 2023

Conversation

phlrain
Copy link
Collaborator

@phlrain phlrain commented Aug 23, 2023

PR types

Function optimization

PR changes

Others

Description

在op的yaml定义中,会指定backend的选择方式,该PR是支持这种设定

Others

Pcard-67164

@phlrain phlrain changed the title Fix new ir seg bug [NewIR]new ir support yaml backend config Aug 24, 2023
} else if (input_map.count(slot_name)) {
// parse from input
int in_index = input_map.at(slot_name);
auto type = map_value_pair.at(op->operand_source(in_index)).type();
Copy link
Contributor

Choose a reason for hiding this comment

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

这里为什么一定要用 opresult 获取 type?

return kernel_data_type;
}

phi::Backend GetKernelBackendByYamlInfo(
Copy link
Contributor

Choose a reason for hiding this comment

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

GetKernelBackendByYamlInfo 和 GetKernelDataTypeByYamlInfo 的内容几乎是一样的,后续可以合并成一个

zhangbo9674
zhangbo9674 previously approved these changes Aug 24, 2023
@phlrain phlrain merged commit cf8e15b into PaddlePaddle:develop Aug 25, 2023
25 of 26 checks passed
BeingGod pushed a commit to BeingGod/Paddle that referenced this pull request Sep 9, 2023
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.

None yet

2 participants