Skip to content

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

2 participants