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.17.tar.gz
(38.6 kB
view details)
Built Distribution
File details
Details for the file fannypack-0.0.17.tar.gz
.
File metadata
- Download URL: fannypack-0.0.17.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 | d72f2f67a10fa0e83b398203b3ab67f677c6ead1cf35df355570073a2026114b |
|
MD5 | 13f16df617d8984c1965bcb6cd381469 |
|
BLAKE2b-256 | 1d7ef5c9d3a78d85258ec716545d8bb28da96363cab0b7835120283365731f22 |
File details
Details for the file fannypack-0.0.17-py3-none-any.whl
.
File metadata
- Download URL: fannypack-0.0.17-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 | 4b4ecd3b63ba74a340a1f56563c5ad3b99871c9996923073473a411ab23394b5 |
|
MD5 | 76d5d0eca659e2e14889e93c4b512e8e |
|
BLAKE2b-256 | 4ae40c882d8f76aa5f7acc86bc271d09d3d07aa0c9e0ca8da3b53708cfdd9d56 |