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.22.tar.gz
(41.3 kB
view details)
Built Distribution
File details
Details for the file fannypack-0.0.22.tar.gz
.
File metadata
- Download URL: fannypack-0.0.22.tar.gz
- Upload date:
- Size: 41.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93911350aeb051ee6417cc78eeb6b7a65afe31c067d67a8a8a43c40354060772 |
|
MD5 | 507a93ac576b2d3f8b5f02adae8209ee |
|
BLAKE2b-256 | 25ce8928c3a3de3d5fe615b1620210f3434b6439980c693c7625820919619bc4 |
File details
Details for the file fannypack-0.0.22-py3-none-any.whl
.
File metadata
- Download URL: fannypack-0.0.22-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.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40131e328f73545241d4918453f420f55e350db4da52a465cab690f4c2a36154 |
|
MD5 | 7c6a5915ba1991070d64bd979f1ed823 |
|
BLAKE2b-256 | 502d2b1a1e743b4a59e31a28d4c863a2b0bac9c82b94c1f752af0f4967d03835 |