[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
134638dd0e
commit
4dc1dcaaec
3 changed files with 32 additions and 12 deletions
|
|
@ -117,10 +117,10 @@ def _has_usable_nvidia_gpu() -> bool:
|
|||
try:
|
||||
result = subprocess.run(
|
||||
[exe, "-L"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.DEVNULL,
|
||||
text=True,
|
||||
timeout=10,
|
||||
stdout = subprocess.PIPE,
|
||||
stderr = subprocess.DEVNULL,
|
||||
text = True,
|
||||
timeout = 10,
|
||||
)
|
||||
except Exception:
|
||||
return False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue