MCPcopy Create free account
hub / github.com/PaddlePaddle/FastDeploy / is_npu

Method is_npu

fastdeploy/platforms/base.py:53–57  ·  view source on GitHub ↗

whether platform is npu

(self)

Source from the content-addressed store, hash-verified

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 """

Callers 1

__init__.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected