Skip to content

Commit

Permalink
Fixes icenet-ai#265: Include missing torch load bool
Browse files Browse the repository at this point in the history
  • Loading branch information
bnubald committed May 29, 2024
1 parent 662882f commit 29e3cf5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions icenet/data/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
pytorch_available = False
try:
from torch.utils.data import Dataset
pytorch_available = True
except ModuleNotFoundError:
print("PyTorch not found - not required if not using PyTorch")
except ImportError:
Expand Down

0 comments on commit 29e3cf5

Please sign in to comment.