mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-07 01:22:59 +08:00
polish code with new pre-commit rule (#2923)
This commit is contained in:
@@ -21,8 +21,9 @@ import paddle
|
||||
from fastdeploy.platforms import current_platform
|
||||
|
||||
if current_platform.is_cuda() and not current_platform.is_dcu():
|
||||
from fastdeploy.model_executor.ops.gpu import \
|
||||
append_attention as append_attention_gpu
|
||||
from fastdeploy.model_executor.ops.gpu import (
|
||||
append_attention as append_attention_gpu,
|
||||
)
|
||||
|
||||
|
||||
def append_attention(
|
||||
@@ -131,4 +132,4 @@ def append_attention(
|
||||
)
|
||||
return out
|
||||
else:
|
||||
raise NotImplementedError()
|
||||
raise NotImplementedError
|
||||
|
Reference in New Issue
Block a user