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

[NPU] add NPU ops of compare, test=develop #34365

Merged
merged 7 commits into from
Jul 28, 2021

Conversation

Aganlengzi
Copy link
Contributor

@Aganlengzi Aganlengzi commented Jul 25, 2021

PR types

New features

PR changes

OPs

Describe

Add new NPU compare ops of less_equal, greater_than, greater_equal.
2e3eee200887bcadf3accda10

@paddle-bot-old
Copy link

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

@CLAassistant
Copy link

CLAassistant commented Jul 25, 2021

CLA assistant check
All committers have signed the CLA.

@Aganlengzi Aganlengzi marked this pull request as draft July 25, 2021 08:10
@Aganlengzi Aganlengzi marked this pull request as ready for review July 26, 2021 08:00
@qili93 qili93 self-requested a review July 26, 2021 11:53
def init_dtype(self):
self.dtype = np.float16


Copy link
Contributor

Choose a reason for hiding this comment

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

建议这里所有的单测case,参考test_compare_op.py用 create_test的方式重写一个,一个是增加代码简洁度,可以直接看到有哪几个OP的单测被cover了;另一个原因是NPU在设计单测上一个是要尽量和CPU/CUDA的单测对齐,并且单测case要>= CPU/CUDA的单测case来保证NPU算子的准确性。

Copy link
Contributor Author

Choose a reason for hiding this comment

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

多谢,已更新

@Aganlengzi Aganlengzi requested a review from qili93 July 27, 2021 11:43
Copy link
Contributor

@qili93 qili93 left a comment

Choose a reason for hiding this comment

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

LGTM

@qili93 qili93 merged commit 68b4a2c into PaddlePaddle:develop Jul 28, 2021
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.

3 participants