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

add unique_op #9819

Merged
merged 10 commits into from
Dec 23, 2022
Merged

add unique_op #9819

merged 10 commits into from
Dec 23, 2022

Conversation

fangzhou2000
Copy link
Contributor

@fangzhou2000 fangzhou2000 commented Dec 7, 2022

PR Type

Add new OP

PR Change

operator && kernel

PR Describe

Add unique OP on Host backends and fix index_select OP bug

@paddle-bot
Copy link

paddle-bot bot commented Dec 7, 2022

Thanks for your contribution!

@CLAassistant
Copy link

CLAassistant commented Dec 7, 2022

CLA assistant check
All committers have signed the CLA.

}

bool UniqueOp::InferShapeImpl() const {
DDim in_dims = param_.X->dims();
Copy link
Collaborator

Choose a reason for hiding this comment

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

image
加上判空

// automatically generated by the FlatBuffers compiler, do not modify


#ifndef FLATBUFFERS_GENERATED_TUNECACHE_PADDLE_LITE_FBS_OPENCL_PROTO_H_
Copy link
Collaborator

Choose a reason for hiding this comment

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

这个文件也不要提交

@@ -815,6 +797,231 @@ void Instruction::Run() {
kernel_->Launch();
has_run_ = true;

Copy link
Collaborator

Choose a reason for hiding this comment

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

这个代码就不用交了

st.integers(
min_value=2, max_value=100),
min_size=1,
max_size=1))
Copy link
Collaborator

Choose a reason for hiding this comment

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

input_shape 多测几个维度,下面的print去掉

pass

def test(self, *args, **kwargs):
self.run_and_statis(quant=False, max_examples=25)
Copy link
Collaborator

Choose a reason for hiding this comment

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

提交代码可以写25,自测的时候要多测几组数据

Copy link
Collaborator

@mjp9527 mjp9527 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
Collaborator

@hong19860320 hong19860320 left a comment

Choose a reason for hiding this comment

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

LGTM

@mjp9527 mjp9527 merged commit 9f1346a into PaddlePaddle:develop Dec 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants