whether platform is npu
(self)
| 51 | return paddle.is_compiled_with_cuda() or paddle.is_compiled_with_rocm() |
| 52 | |
| 53 | def is_npu(self) -> bool: |
| 54 | """ |
| 55 | whether platform is npu |
| 56 | """ |
| 57 | return paddle.is_compiled_with_custom_device("npu") |
| 58 | |
| 59 | def is_xpu(self) -> bool: |
| 60 | """ |