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 use_cudnn config in yaml #41368

Merged
merged 1 commit into from
Apr 4, 2022

Conversation

zyfncg
Copy link
Contributor

@zyfncg zyfncg commented Apr 3, 2022

PR types

Others

PR changes

Others

Describe

Yaml配置中增加对cudnn kernel选择的支持,配置示例如下:

- api : conv2d
  ...
  kernel :
    func : conv2d
    use_cudnn : FLAGS_conv2d_disable_cudnn == false

use_cudnn的配置为一个字符串形式的条件表达式,也可直接使用true或false,未配置时默认为false。
上述示例中表示在FLAGS_conv2d_disable_cudnn == false这个条件满足时会在计算中优先选择cudnn的kernel。

@paddle-bot-old
Copy link

paddle-bot-old bot commented Apr 3, 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.

@phlrain phlrain self-requested a review April 4, 2022 13:53
@phlrain phlrain merged commit 1888d87 into PaddlePaddle:develop Apr 4, 2022
@zyfncg zyfncg deleted the cudnn_kernel_select branch April 4, 2022 15:12
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