mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-05 08:37:06 +08:00
Adapt for iluvatar gpu (#2684)
This commit is contained in:
@@ -63,6 +63,12 @@ class Platform:
|
||||
"""
|
||||
return paddle.is_compiled_with_rocm()
|
||||
|
||||
def is_iluvatar(self) -> bool:
|
||||
"""
|
||||
whether platform is iluvatar gpu
|
||||
"""
|
||||
return paddle.is_compiled_with_custom_device("iluvatar_gpu")
|
||||
|
||||
@classmethod
|
||||
def get_attention_backend_cls(self, selected_backend):
|
||||
"""Get the attention backend"""
|
||||
|
Reference in New Issue
Block a user