| 128 | namespace paddle::experimental { |
| 129 | |
| 130 | phi::DeviceContext* GetDeviceContextByBackend(phi::Backend backend) { |
| 131 | auto& pool = paddle::experimental::DeviceContextPool::Instance(); |
| 132 | return pool.GetMutable(phi::TransToPhiPlace(backend)); |
| 133 | } |
| 134 | |
| 135 | DataType ParseDataType(DataType dtype) { return dtype; } |
| 136 | DataType ParseDataType(const Tensor& tensor) { return tensor.type(); } |
no test coverage detected