未验证 提交 c055b50c 编写于 作者: Z zyfncg 提交者: GitHub

fix data transform problem for cudnn backend (#41622)

上级 d6e15914
...@@ -40,7 +40,8 @@ inline bool NeedTransformPlace(const paddle::platform::Place& input, ...@@ -40,7 +40,8 @@ inline bool NeedTransformPlace(const paddle::platform::Place& input,
bool ret = bool ret =
input.GetType() == AllocationType::GPUPINNED || input.GetType() == AllocationType::GPUPINNED ||
(transform_flag.need_trans_backend() && target != Backend::ALL_BACKEND && (transform_flag.need_trans_backend() && target != Backend::ALL_BACKEND &&
phi::TransToPhiBackend(input) != target); phi::TransToPhiBackend(input) !=
(target != Backend::GPUDNN ? target : Backend::GPU));
return ret; return ret;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册