Skip to content

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

2 participants