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

[Pten] move paddle/operators/math/functors.h and compound_functors.h #39514

Merged
merged 2 commits into from
Feb 15, 2022

Conversation

iclementine
Copy link

@iclementine iclementine commented Feb 14, 2022

PR types

Others

PR changes

Others

Describe

  1. move paddle/operators/math/functors.h to paddle/pten/kernels/funcs
  2. move paddle/operators/math/compound_functors.h to paddle/pten/kernels/funcs

@iclementine iclementine changed the title move paddle/operators/math/functors.h [Pten] move paddle/operators/math/functors.h Feb 14, 2022
@paddle-bot-old
Copy link

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

@iclementine iclementine changed the title [Pten] move paddle/operators/math/functors.h move paddle/operators/math/functors.h and compound_functors.h Feb 15, 2022
@iclementine iclementine changed the title move paddle/operators/math/functors.h and compound_functors.h [Pten] move paddle/operators/math/functors.h and compound_functors.h Feb 15, 2022
Copy link
Contributor

@chenwhql chenwhql left a comment

Choose a reason for hiding this comment

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

迁移过来的时候,可以顺便把platform::float16/bfloat16/complex改为pten::dtype::float16/bfloat16/complex

@@ -17,29 +17,31 @@ limitations under the License. */
#include "paddle/fluid/operators/amp/fp16_type_traits.h"
#include "paddle/fluid/operators/math.h"
Copy link
Contributor

Choose a reason for hiding this comment

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

这个可以在后续PR迁移过来吗?我看内容不多

Copy link
Author

@iclementine iclementine Feb 15, 2022

Choose a reason for hiding this comment

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

"paddle/fluid/operators/math.h" 目前其他同学在迁移。

@@ -17,29 +17,31 @@ limitations under the License. */
#include "paddle/fluid/operators/amp/fp16_type_traits.h"
Copy link
Contributor

Choose a reason for hiding this comment

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

这个里面的两个traits我觉得可以直接放pten/common/float16.h中

Copy link
Author

Choose a reason for hiding this comment

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

赞成,这个类型的一些 function 和 trait 放在一起比较合理。
我后续加一个迁移 fp16_type_traits 的 PR

@iclementine iclementine merged commit 0d46a10 into PaddlePaddle:develop Feb 15, 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