Skip to content

Commit

Permalink
make prototype module and therefore torchdata dependency optional
Browse files Browse the repository at this point in the history
  • Loading branch information
biphasic committed Jan 12, 2023
1 parent f4cb6fc commit 367b27f
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 367b27f

Please sign in to comment.