Skip to content

Commit

Permalink
Ensure that torch metadata gathering cannot fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Delaunay authored Jul 3, 2024
1 parent d669feb commit f5669c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion milabench/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

from ._version import __commit__, __date__, __tag__
from .scripts.vcs import retrieve_git_versions

from .utils import error_guard

def _get_gpu_info():
try:
Expand All @@ -21,6 +21,7 @@ def _get_gpu_info():
return {}


@error_guard({})
def fetch_torch_version(pack):
cwd = pack.dirs.code
exec_env = pack.full_env(dict())
Expand Down

0 comments on commit f5669c1

Please sign in to comment.