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

[Eager][Yaml]Supported Scalar and ScalarArray for AutoCodeGen #40080

Merged

Conversation

jim19930609
Copy link
Contributor

PR types

New features

PR changes

Others

Describe

Some phi kernels use "Scalar" or "ScalarArray" as attributes. This patch added Python-C utils functions to parse python inputs into Scalar or ScalarArray accordingly.

@paddle-bot-old
Copy link

paddle-bot-old bot commented Mar 2, 2022

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

op_type, "" /*arg_name*/, obj, arg_pos, false /*dispensable*/);
return paddle::experimental::ScalarArray(value);

} else {
Copy link
Contributor

Choose a reason for hiding this comment

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

ScalarArray还有一种构造case是vector<Tensor>,可能也需要支持一下

@jim19930609 jim19930609 merged commit 97ccaa7 into PaddlePaddle:develop Mar 3, 2022
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