未验证 提交 90e37d19 编写于 作者: S shentanyue 提交者: GitHub

share_external_memory of python api support xpu (#55170)

上级 88402cdb
...@@ -243,6 +243,8 @@ paddle_infer::PlaceType ToPaddleInferPlace( ...@@ -243,6 +243,8 @@ paddle_infer::PlaceType ToPaddleInferPlace(
return paddle_infer::PlaceType::kCPU; return paddle_infer::PlaceType::kCPU;
} else if (allocation_type == phi::AllocationType::GPU) { } else if (allocation_type == phi::AllocationType::GPU) {
return paddle_infer::PlaceType::kGPU; return paddle_infer::PlaceType::kGPU;
} else if (allocation_type == phi::AllocationType::XPU) {
return paddle_infer::PlaceType::kXPU;
} else { } else {
return paddle_infer::PlaceType::kCPU; return paddle_infer::PlaceType::kCPU;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册