accelerate
Prefer `is_torch_tensor` over `hasattr` for torch.compile.
#2387
Merged

Prefer `is_torch_tensor` over `hasattr` for torch.compile. #2387

muellerzr merged 8 commits into huggingface:main from PhilJd:main
PhilJd
HuggingFaceDocBuilderDev
muellerzr
muellerzr commented on 2024-01-30
muellerzr
muellerzr commented on 2024-01-30
PhilJd
PhilJd
muellerzr
PhilJd PhilJd force pushed from 443963e7 to 1f0f535a 2 years ago
PhilJd
muellerzr
muellerzr approved these changes on 2024-02-08
PhilJd
muellerzr
muellerzr commented on 2024-02-12
muellerzr
muellerzr approved these changes on 2024-02-12
PhilJd Prefer `is_torch_tensor` over `hasattr` for `torch.compile`.
ef6d8d69
PhilJd Fix torch.device("npu").
816f9508
PhilJd Remove unittest.main execution.
0392a724
PhilJd Fix style broken by merge save.
ff03d608
PhilJd Import operations functions directly.
947792f0
PhilJd fix style
d6a5a15c
PhilJd Fix imports attempt 2.
3aa55ba3
PhilJd PhilJd force pushed from 18825c6c to 3aa55ba3 2 years ago
PhilJd
BenjaminBossan
BenjaminBossan commented on 2024-02-13
PhilJd Re-raise error if no NPU available.
f9dd02ec
PhilJd
PhilJd commented on 2024-02-13
BenjaminBossan
BenjaminBossan approved these changes on 2024-02-14
muellerzr muellerzr merged aba3b8c7 into main 2 years ago
sheepymeh
muellerzr

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone