未验证 提交 0fd6efbb 编写于 作者: R ronnywang 提交者: GitHub

[CustomDevice] fix device guard (#55351)

上级 aaf021c9
......@@ -29,12 +29,6 @@ class DeviceGuard {
}
}
inline ~DeviceGuard() {
if (cur_id != prev_id) {
DeviceManager::SetDevice(dev_type_, prev_id);
}
}
DeviceGuard(const DeviceGuard& o) = delete;
DeviceGuard& operator=(const DeviceGuard& o) = delete;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册