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

[ARM] add Linear_interp && Linear_interp_v2 op;fix scale_act_fuse_pass and conv_scale_fuse_pass #9983

Merged
merged 3 commits into from
Feb 21, 2023
Merged

Conversation

mjp9527
Copy link
Collaborator

@mjp9527 mjp9527 commented Feb 9, 2023

PR devices

Arm

PR types

New features && Bug fixes

PR changes

OP && PASS && Kernels && Backends

Description

在Arm端新增Linear_interp/Linear_interp_v2 OP实现;
修复 scale_fuse_activation_pass 和 conv_fuse_scale_pass 对激活函数设置不正确的bug

@paddle-bot
Copy link

paddle-bot bot commented Feb 9, 2023

Thanks for your contribution!

} /* namespace operators */
} /* namespace lite */
} /* namespace paddle */

REGISTER_LITE_OP(nearest_interp, paddle::lite::operators::InterpolateOp);
REGISTER_LITE_OP(bilinear_interp, paddle::lite::operators::InterpolateOp);
REGISTER_LITE_OP(linear_interp, paddle::lite::operators::InterpolateOp1D);
Copy link
Collaborator

Choose a reason for hiding this comment

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

为什么需要单独定义一个 InterpolateOp1D,其处理能合并到 InterpolateOp 里面吗?如果不能,为啥不定义成 LinearInterpolateOp ,这样是否更清楚?同理,arm math 的 interpolate1D 存在一样的情况,命名方面,建议与实际算子名称对应,否则不太好理解。

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

好的, InterpolateOp1D 之前是看paddle里linear是1D,nearest/bilinear是2D,这块我重新整理一下

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 bec036d into PaddlePaddle:develop Feb 21, 2023
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