delu#

Deep Learning Utilities for PyTorch users.

Tensor operations

to

Like torch.Tensor.to, but for collections of tensors.

cat

Like torch.cat, but for collections of tensors.

iter_batches

Iterate over tensor or collection of tensors by (random) batches.

Monitoring

ProgressTracker

Helps with early stopping and tracks the best metric value.

Timer

Measures time.

Submodules

See the sidebar on the left.


Deprecated items

Show

Stream

[DEPRECATED | Currently, no alternatives are available.] Smart wrapper for data loaders and iterables.

collate

[DEPRECATED | Instead, use torch.utils.data.dataloader.default_collate] Almost an alias for torch.utils.data.dataloader.default_collate.

concat

[DEPRECATED | Instead, use delu.cat]

improve_reproducibility

[DEPRECATED | Instead, use delu.random.seed and manually set flags mentioned in the PyTorch docs on reproducibility] Set seeds and turn off non-deterministic algorithms.

evaluation

[DEPRECATED | Instead, use model.eval() + torch.no_inference/no_grad] Context-manager & decorator for models evaluation.