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

Simplify the code of conv. #45966

Merged
merged 1 commit into from
Sep 14, 2022
Merged

Conversation

Xreki
Copy link
Contributor

@Xreki Xreki commented Sep 13, 2022

PR types

Function optimization

PR changes

OPs

Describe

OP Benchmark CI运行情况:conv2d_5 forward fail。运行详情如下,所选择的kernel一样,但是执行时间稍有差异,应该是由于波动引起。

image

image

@paddle-bot
Copy link

paddle-bot bot commented Sep 13, 2022

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

CudnnAlgorithmsCacheMap& GetConv(const AlgorithmType& algo_type) {
return cudnn_auto_tune_map_[static_cast<int64_t>(algo_type)];
}

CudnnAlgorithmsCacheMap& GetConvForward() {
Copy link
Contributor

@JamesLim-sy JamesLim-sy Sep 14, 2022

Choose a reason for hiding this comment

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

这些Get 成员方法,感觉不再需要了,应该可以删除:
CudnnAlgorithmsCacheMap& GetConvForward()
CudnnAlgorithmsCacheMap& GetConvBackwardData()
CudnnAlgorithmsCacheMap& GetConvBackwardFilter()
或者再提交1个PR删除这些代码

Copy link
Contributor Author

Choose a reason for hiding this comment

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

这几个函数,我是考虑后面有没有可能需要再用到,所以暂时没删。

Copy link
Contributor

@JamesLim-sy JamesLim-sy left a comment

Choose a reason for hiding this comment

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

LGTM

@Xreki Xreki merged commit 3a5b504 into PaddlePaddle:develop Sep 14, 2022
@Xreki Xreki deleted the autotune/conv_opt branch September 14, 2022 02:49
b3602sss pushed a commit to b3602sss/Paddle that referenced this pull request Sep 14, 2022
Xreki added a commit to Xreki/Paddle that referenced this pull request Oct 20, 2022
lanxianghit pushed a commit that referenced this pull request Oct 20, 2022
…47197)

* Simplify the codes of conv. (#45966)

* Enable to record whether the conv algo is got by exhaustive search to fix autotune cache bug. (#47065)
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