Skip to content

Commit

Permalink
share_external_memory of python api support xpu (PaddlePaddle#55170)
Browse files Browse the repository at this point in the history
  • Loading branch information
shentanyue authored and cqulilujia committed Jul 24, 2023
1 parent 89f873c commit 2e1b3a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions paddle/fluid/pybind/inference_api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ paddle_infer::PlaceType ToPaddleInferPlace(
return paddle_infer::PlaceType::kCPU;
} else if (allocation_type == phi::AllocationType::GPU) {
return paddle_infer::PlaceType::kGPU;
} else if (allocation_type == phi::AllocationType::XPU) {
return paddle_infer::PlaceType::kXPU;
} else {
return paddle_infer::PlaceType::kCPU;
}
Expand Down

0 comments on commit 2e1b3a0

Please sign in to comment.