Skip to content

Commit

Permalink
Merge pull request #235 from neuromorphs/234-torchdata-is-indirect-fi…
Browse files Browse the repository at this point in the history
…xed-dependency-through-prototype-datasets

make prototype module and therefore torchdata dependency optional
  • Loading branch information
biphasic authored Jan 12, 2023
2 parents f4cb6fc + 367b27f commit 06a2c8f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tonic/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
from pbr.version import VersionInfo

from . import collation, datasets, io, prototype, slicers, transforms, utils
from . import collation, datasets, io, slicers, transforms, utils
from .cached_dataset import CachedDataset, DiskCachedDataset, MemoryCachedDataset
from .dataset import Dataset
from .sliced_dataset import SlicedDataset

try:
from . import prototype
except (ImportError, NameError):
pass

all = "__version__"
__version__ = VersionInfo("tonic").release_string()

0 comments on commit 06a2c8f

Please sign in to comment.