Delu

Latest version: v0.0.26

Safety actively analyzes 706267 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 3

0.0.17

Breaking changes
- `delu.cat`: now, the input must be a list (before, any iterable was allowed)
- `delu.Timer`: now, `print(timer)`, `str(timer)`, `f'{timer}'` etc. return the full-precision representation (without rounding to seconds)

New features
- `delu.EarlyStopping`: a simpler replacement for `delu.ProgressTracker`, but now, without tracking the best score. The usage is very similar, see the documentation.
- `delu.cat`: now, supports nested collections (e.g. the input can be a list of `tuple[Tensor, dict[str, tuple[Tensor, Tensor]]]`)

Deprecations
- `delu.ProgressTracker`: instead, use `delu.EarlyStopping`
- `delu.data.FnDataset`: no alternatives are provided

0.0.15

Breaking changes

- `delu.iter_batches` is now powered by `torch.arange/randperm`, the interface was changed accordingly
- `delu.Timer`: the methods `add` and `sub` are removed


New features

- `delu.to`: like `torch.Tensor.to`, but for (nested) collections of tensors
- `delu.cat`: like `torch.cat`, but for collections of tensors
- `delu.iter_batches` is now faster and has a better interface

Deprecations

- `delu.concat` is deprecated in favor of `delu.cat`
- `delu.hardware.free_memory` is now a deprecated alias to `delu.cuda.free_memory`
- deprecate `delu.data.Stream`
- deprecate `delu.data.collate`
- instead, use `torch.utils.data.dataloader.default_collate`
- deprecate `delu.data.make_index_dataloader`
- instead, use `delu.data.IndexDataset` + `torch.utils.data.DataLoader`
- deprecate `delu.evaluation`
- instead, use `torch.nn.Module.eval` + `torch.inference_mode`
- deprecate `delu.hardware.get_gpus_info`
- instead, use the corresponding functions from `torch.cuda`
- deprecate `delu.improve_reproducibility`
- instead, use `delu.random.seed` and manually set settings mention [here](https://pytorch.org/docs/stable/notes/randomness.html)

Documentation
- many improved explanations and examples

Dependencies

- require `python>=3.8`
- remove `tqdm` and `pynvml` from dependencies

Project
- switch from flake8 to ruff
- move tool settings from setup.cfg to pyproject.toml for coverage, isort, mypy
- freeze versions in requirements_dev.txt

0.0.13

**THE PROJECT WAS RENAMED FROM "Zero" TO "DeLU"**

0.0.8

API changes:
- `zero.random.seed`
- the argument must be less than `2 ** 32 - 10000`
- the `seed` argument was renamed to `base_seed`

New features:
- `zero.random.seed`:
- sets better seeds based on the given argument
- the new argument `one_cuda_seed` (`False` by default) allows to choose if the same seed is set for all CUDA devices

Documentation
- style improvements

Dependencies
- `numpy>=1.18`

0.0.7

This release includes several nice updates to the website:

- added the "copy button" to code blocks
- highlight Python signatures
- make section link buttons visible and usable

0.0.6

New features
- `random.preserve_state`: decorator and a context manager for preserving global random state
- `Stream.epochs`: when used in JupyterLab (Jupyter Notebook) and [`ipywidgets`](https://ipywidgets.readthedocs.io) is installed, a pretty progress bar widget is used instead of the text-based one.
- `evaluation`: for torch>=1.9.0, uses [`torch.inference_mode`](https://pytorch.org/docs/1.9.0/generated/torch.inference_mode.html) instead of `torch.no_grad`

API changes
- `evaluation`: cannot decorate generators anymore

Behavior
- `evaluation`: for torch>=1.9.0, uses `torch.inference_mode` instead of `torch.no_grad`

Dependencies:
- `torch >= 1.7`
- `pynvml >= 11.0`

Project
- added spell checking for the documentation

Page 2 of 3

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.