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.16.tar.gz (38.5 kB view details)

Uploaded Source

Built Distribution

fannypack-0.0.16-py3-none-any.whl (51.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fannypack-0.0.16.tar.gz
  • Upload date:
  • Size: 38.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for fannypack-0.0.16.tar.gz
Algorithm Hash digest
SHA256 83f47cae3d342bc079c30b5a47d8ee6b0986c692f88f0b2264413dc90a6fdc8b
MD5 8439d3c513705d098f2426059721856b
BLAKE2b-256 6fd232f6ece4c29ac9880b1e2b5c26e93fa1e5aa4a38da29d52b1247f43930fe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fannypack-0.0.16-py3-none-any.whl
  • Upload date:
  • Size: 51.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for fannypack-0.0.16-py3-none-any.whl
Algorithm Hash digest
SHA256 3255956a5df549de0e9bb1aa47ee1cfaf977fc04cf21196eea0aff6767bb427f
MD5 83ce50a899bbe18d734ca9cdba039cba
BLAKE2b-256 87d8a8d2fb323d6dffc11d490a3513a602d35605ece6ac81b1dd963b60d97ef1

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