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

[KP] Solve the problem of unittests not being executed #40397

Merged
merged 21 commits into from
Mar 10, 2022

Conversation

AshburnLee
Copy link
Contributor

@AshburnLee AshburnLee commented Mar 10, 2022

PR types

Bug fixes

PR changes

Others

Describe

问题

使用XPU_KP的方式注册添加op及单测后,当添加op至XPU_KPWHITE_LIST,该op单测不被执行。

方法

新增ceil op,单测文件中 接口 get_xpu_op_support_types('ceil') 不识别'ceil',原因是该接口与 函数get_xpu_op_support_type()映射,而后者是从xpu1_op_list.h&xpu2_op_list.h获取op列表,新增op并没有被添加到这两个list中。已添加从xpu_op_kpfirst_list.h中获取op列表。

效果

export XPU_KPWHITE_LIST=ceil,log

新增ceil op:
截屏2022-03-10 12 48 00
符合期望

原有log op:
截屏2022-03-10 12 48 30
不受影响

update Paddle USERNAME repo
@paddle-bot-old
Copy link

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

Copy link
Member

@Liu-xiandong Liu-xiandong left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@AnnaTrainingG AnnaTrainingG left a comment

Choose a reason for hiding this comment

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

Good ~

@AnnaTrainingG AnnaTrainingG merged commit bd4dc3b into PaddlePaddle:develop Mar 10, 2022
@AshburnLee AshburnLee deleted the second branch March 10, 2022 12:10
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.

4 participants