Skip to content

Commit

Permalink
Ignore if torch is not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasteuwen committed Sep 23, 2023
1 parent e213e90 commit 788a77c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 102 deletions.
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 # type: ignore
import torch # type: ignore # pylint: disable=import-error


class ArrayEncoder(json.JSONEncoder):
Expand Down
101 changes: 0 additions & 101 deletions tests/new_test.py

This file was deleted.

2 changes: 2 additions & 0 deletions tests/utils/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) dlup contributors

import json

import numpy as np
Expand Down

0 comments on commit 788a77c

Please sign in to comment.