torchinfo

View model summaries in PyTorch!

MIT License

Downloads
245.2K
Stars
2.5K
Committers
21

Bot releases are hidden (Show)

torchinfo - v1.8.0 Latest Release

Published by TylerYep over 1 year ago

What's Changed

Full Changelog: https://github.com/TylerYep/torchinfo/compare/v1.7.2...v1.8.0

torchinfo - v1.7.2

Published by TylerYep over 1 year ago

What's Changed

Cleanup Work

New Contributors

Full Changelog: https://github.com/TylerYep/torchinfo/compare/v1.7.1...v1.7.2

torchinfo - v1.7.1

Published by TylerYep about 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/TylerYep/torchinfo/compare/v1.7.0...v1.7.1

torchinfo - v1.7.0

Published by TylerYep over 2 years ago

What's Changed

  • Calculate parameter counts for nn.Parameter
  • Add parameter counts for nn.UninitializedParameters
  • Show output shapes for the overall model
  • Internal optimizations (hooks applied iteratively instead of recursively, add profiling code)

Full Changelog: https://github.com/TylerYep/torchinfo/compare/v1.6.6...v1.7.0

torchinfo - v1.6.6

Published by TylerYep over 2 years ago

What's Changed

torchinfo - v1.6.5

Published by TylerYep over 2 years ago

Fix a regression in which torchinfo would crash on PyTorch versions < 1.9

torchinfo - v1.6.4

Published by TylerYep over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/TylerYep/torchinfo/compare/v1.6.3...v1.64

torchinfo - v1.6.3

Published by TylerYep almost 3 years ago

torchinfo - v1.6.2

Published by TylerYep almost 3 years ago

Fixed bug with layer reuse in the same variable, with and without existing hooks.

torchinfo - v1.6.1

Published by TylerYep almost 3 years ago

  • Support for pruned models
  • Support for "ascii_only" as a row setting to disable the fancy branch logging.
torchinfo - v1.6.0

Published by TylerYep almost 3 years ago

Deprecate Python 3.6 support. Install v1.5.4 if you want to use Python 3.6.

torchinfo - v1.5.4

Published by TylerYep almost 3 years ago

LayerInfo's trainable field is now trainable_params

torchinfo - v1.5.3

Published by TylerYep about 3 years ago

  • Display layers that share the same variable
    • e.g. activation layers that are defined once and then reused throughout the model
  • README updates.
torchinfo - v1.5.2

Published by TylerYep over 3 years ago

  • 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.
torchinfo - v1.5.1

Published by TylerYep over 3 years ago

  • 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
torchinfo - v1.5.0

Published by TylerYep over 3 years ago

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

torchinfo - v0.1.5

Published by TylerYep over 3 years ago

  • Fix issues with torch.jit scripted modules
  • Add support for ParameterLists
  • Display bias layers in verbose=2 mode
torchinfo - v0.1.4

Published by TylerYep over 3 years ago

Add py.typed to surface type annotations.

torchinfo - v0.1.3

Published by TylerYep over 3 years ago

Fix bug with inconsistent calculations for total_params using different depths.

torchinfo - v0.1.2

Published by TylerYep over 3 years ago

Fix MACs calculation and differences in output when using different depths.

depth parameter now only affects formatting, calculated values do not change.

Package Rankings
Top 1.72% on Pypi.org
Top 6.59% on Proxy.golang.org
Top 14.68% on Conda-forge.org
Badges
Extracted from project README
Python 3.8+ PyPI version Conda version Build Status pre-commit.ci status GitHub license codecov Downloads