Skip to content

Commit

Permalink
Ignore if torch does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasteuwen committed Sep 23, 2023
1 parent 6737ecc commit e213e90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlup/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from dlup.utils.imports import PYTORCH_AVAILABLE

if PYTORCH_AVAILABLE:
import torch
import torch # type: ignore


class ArrayEncoder(json.JSONEncoder):
Expand Down

0 comments on commit e213e90

Please sign in to comment.