torchbase 0.1.2__tar.gz → 0.1.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {torchbase-0.1.2 → torchbase-0.1.3}/PKG-INFO +1 -1
- {torchbase-0.1.2 → torchbase-0.1.3}/pyproject.toml +1 -1
- {torchbase-0.1.2 → torchbase-0.1.3}/torchbase/session.py +2 -0
- {torchbase-0.1.2 → torchbase-0.1.3}/LICENSE +0 -0
- {torchbase-0.1.2 → torchbase-0.1.3}/README.md +0 -0
- {torchbase-0.1.2 → torchbase-0.1.3}/torchbase/__init__.py +0 -0
- {torchbase-0.1.2 → torchbase-0.1.3}/torchbase/utils/__init__.py +0 -0
- {torchbase-0.1.2 → torchbase-0.1.3}/torchbase/utils/data.py +0 -0
- {torchbase-0.1.2 → torchbase-0.1.3}/torchbase/utils/logger.py +0 -0
- {torchbase-0.1.2 → torchbase-0.1.3}/torchbase/utils/metrics.py +0 -0
- {torchbase-0.1.2 → torchbase-0.1.3}/torchbase/utils/metrics_instances.py +0 -0
- {torchbase-0.1.2 → torchbase-0.1.3}/torchbase/utils/networks.py +0 -0
- {torchbase-0.1.2 → torchbase-0.1.3}/torchbase/utils/session.py +0 -0
|
@@ -258,6 +258,8 @@ class TrainingBaseSession(ABC):
|
|
|
258
258
|
def _init_network(self) -> torch.nn.Module:
|
|
259
259
|
|
|
260
260
|
network = self.init_network()
|
|
261
|
+
network = network.to(self.device)
|
|
262
|
+
|
|
261
263
|
if not isinstance(network, torch.nn.Module):
|
|
262
264
|
raise TypeError("Failed to instantiate a valid `network`, an instance of `torch.nn.Module`.")
|
|
263
265
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|