PyTorch utilities
Project description
fannypack
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
Release history Release notifications | RSS feed
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.18.tar.gz
(38.6 kB
view details)
Built Distribution
File details
Details for the file fannypack-0.0.18.tar.gz
.
File metadata
- Download URL: fannypack-0.0.18.tar.gz
- Upload date:
- Size: 38.6 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | da79aaa942a6de8f52062ef5584b48fbe41d817c17523114b023e170b1bfdc4b |
|
MD5 | d29726487f513286986884d20d95fdbf |
|
BLAKE2b-256 | 4fcf09544b326b50fa26802db4fbe0048ff3bf635d575df5de2dab52fa4c8092 |
File details
Details for the file fannypack-0.0.18-py3-none-any.whl
.
File metadata
- Download URL: fannypack-0.0.18-py3-none-any.whl
- Upload date:
- Size: 51.6 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 883f1a761bdb2e5df11c3083c95fe56e13c30dee67350bc4800f3f87b9926b3c |
|
MD5 | 77577441d7657c4b896e47af67710912 |
|
BLAKE2b-256 | 4cc8ff15fd31806ef92f5d3d8de4561f1c661593bbc92d7ca0ed757c2acc435e |