Skip to content

Commit 351bac5

Browse files
fix lint error
Signed-off-by: Takeshi Yoshimura <tyos@jp.ibm.com>
1 parent 12c3c2f commit 351bac5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

fastsafetensors/frameworks/_paddle.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,11 @@ def copy_tensor(self, dst: PaddleTensor, src: PaddleTensor) -> None:
207207
dst.device = src.device
208208

209209
def get_cuda_ver(self) -> str:
210-
return str(paddle.version.cuda()) if paddle.device.is_compiled_with_cuda() else "0.0"
210+
return (
211+
str(paddle.version.cuda())
212+
if paddle.device.is_compiled_with_cuda()
213+
else "0.0"
214+
)
211215

212216
def get_device_ptr_align(self) -> int:
213217
CUDA_PTR_ALIGN: int = 16

0 commit comments

Comments
 (0)