Skip to main content

PyTorch utilities

Project description

fannypack

build mypy lint codecov

A loose collection of tools for training PyTorch models.

Contents include helpers for:

  • Experiment management, Tensorboard logging, and checkpointing (Python + CLI)
  • Reading and manipulating arrays and tensors stored in containers: converting between types, moving across (Torch) devices, slicing across shared dimensions
  • Freezing and unfreezing portions of PyTorch modules
  • Reading and writing time series data/trajectory files via hdf5
  • and a lot more!

See documentation for full overview of functionality.


Installation

Standard installation:

pip install fannypack

Install from source:

git clone https://github.com/brentyi/fannypack.git
cd fannypack && pip install -e .

Development

Tests can be run with pytest, and documentation can be built by running make github in the docsource/ directory.

Tooling: black and isort for formatting, flake8 for linting, and mypy for static type-checking.

Until numpy 1.20.0 is released, type-checking also requires that NumPy stubs are installed manually:

pip install https://github.com/numpy/numpy-stubs/tarball/master

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fannypack-0.0.23.tar.gz (41.3 kB view details)

Uploaded Source

Built Distribution

fannypack-0.0.23-py3-none-any.whl (54.8 kB view details)

Uploaded Python 3

File details

Details for the file fannypack-0.0.23.tar.gz.

File metadata

  • Download URL: fannypack-0.0.23.tar.gz
  • Upload date:
  • Size: 41.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for fannypack-0.0.23.tar.gz
Algorithm Hash digest
SHA256 eb50e9e578fe4167cd23c0cce6c9536d5c61b8b4e83f232bdbdce997c3115342
MD5 c0aede43191642071372c91cc033d00b
BLAKE2b-256 92ec3ec29bba9994fae86cbf06676514229467f2b0066595e06cc7b091e9c1a8

See more details on using hashes here.

File details

Details for the file fannypack-0.0.23-py3-none-any.whl.

File metadata

  • Download URL: fannypack-0.0.23-py3-none-any.whl
  • Upload date:
  • Size: 54.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for fannypack-0.0.23-py3-none-any.whl
Algorithm Hash digest
SHA256 cf0580ca900741cca0cbef53a11cb8a4b283eb3597c47093398569723b653e35
MD5 7dafc8317781fb5a737860712f386e28
BLAKE2b-256 cffde45ef91caa762b687238debaa3f21e0a2238d8c3bd91a8c8924fcec4350f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page