Torchinfo

Latest version: v1.7.2

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

Scan your dependencies

Page 3 of 5

1.5.2

- Use sys.getsizeof for calculating input size. In the future, we will use this instead of the tensor shape to calculate the size.
- Rework the input_data correction to allow nested dicts and other data structure combinations.
- Add missing basic summary test.
- Refactor the main summary function to use a common traversal helper function.

1.5.1

- Fix bug causing inconsistent Mult-Add totals that do not sum correctly.
- Overhaul output testing to work automatically for all tests
- Add `cache_forward_pass` to make it easier to iterate on depths in Jupyter Notebooks


v.1.5.0
Upgrade the version number past v1.4.5 in order for pip to resolve the version correctly across older versions of pip.

1.4.4

Last release under the old PyPI package, deprecates Python 3.5 support.

Please pin v1.4.3 if you wish to continue using Python 3.5.
Additionally fixes several misc bugs.

1.4.3

Minor bug fixes, now forwards correct error messages when an exception occurs.

1.4.2

Fix bug with nested list inputs.

1.4.0

Sequential & ModuleList Support

Thanks roym899 for implementing this feature!

Page 3 of 5

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.