未验证 提交 ca4d2fca 编写于 作者: J Jacek Czaja 提交者: GitHub

- candidate fix (#35231)

上级 6ff179ab
...@@ -476,10 +476,8 @@ inline std::string CreateKey(const platform::MKLDNNDeviceContext& dev_ctx, ...@@ -476,10 +476,8 @@ inline std::string CreateKey(const platform::MKLDNNDeviceContext& dev_ctx,
inline std::string ExtendKeyWithThreadInfoIfNeeded( inline std::string ExtendKeyWithThreadInfoIfNeeded(
const platform::MKLDNNDeviceContext& dev_ctx, const std::string& key) { const platform::MKLDNNDeviceContext& dev_ctx, const std::string& key) {
return ((paddle::platform::MKLDNNDeviceContext::tls().is_tid_used_in_key() == return (paddle::platform::MKLDNNDeviceContext::tls().is_tid_used_in_key() ==
true) && true)
(platform::MKLDNNDeviceContext::tls().get_cur_mkldnn_session_id() ==
platform::MKLDNNDeviceContextThreadLocals::kMKLDNNSessionID_Default))
? key + "-t:" + ThreadIDasStr() ? key + "-t:" + ThreadIDasStr()
: key; : key;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册