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

Method is_dcu

fastdeploy/platforms/base.py:77–81  ·  view source on GitHub ↗

whether platform is dcu

(self)

Source from the content-addressed store, hash-verified

75 return paddle.device.get_device().lower() == "cpu"
76
77 def is_dcu(self) -> bool:
78 """
79 whether platform is dcu
80 """
81 return paddle.is_compiled_with_rocm()
82
83 def is_iluvatar(self) -> bool:
84 """

Callers 12

post_process_normalFunction · 0.45
rebuild_paddingFunction · 0.45
__init__Method · 0.45
__init__Method · 0.45
get_quant_methodMethod · 0.45
__init__Method · 0.45
top_k_top_p_samplingFunction · 0.45
__init__.pyFile · 0.45
get_workerFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected