未验证 提交 5f92cc54 编写于 作者: E engineer1109 提交者: GitHub

fix RecordStreamForGC nullptr exception (#54606)

changed
上级 584ae4d7
......@@ -1278,6 +1278,9 @@ void InterpreterCore::RecordStreamForGC(const Instruction& instr) {
instr.KernelType() != OpFuncType::kGpuAsync) {
return;
}
if (instr.DeviceContext().GetPlace() == phi::CustomPlace()) {
return;
}
platform::RecordEvent record(
"RecordStreamForGC", platform::TracerEventType::UserDefined, 10);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册