MCPcopy Create free account
hub / github.com/activeloopai/deeplake / _pytorch

Function _pytorch

python/deeplake/__init__.py:189–192  ·  view source on GitHub ↗
(self, transform: Callable[[Any], Any] = None)

Source from the content-addressed store, hash-verified

187
188
189def _pytorch(self, transform: Callable[[Any], Any] = None):
190 from deeplake._torch import TorchDataset
191
192 return TorchDataset(self, transform=transform)
193
194
195DatasetView.pytorch = _pytorch

Callers

nothing calls this directly

Calls 1

TorchDatasetClass · 0.90

Tested by

no test coverage detected