A small wrapper around pytest_regressions for Tensors
Project description
tensor_regression
A small wrapper to simplify using pytest_regressions with Tensors.
This adds the following to pytest_regressions:
- Simple Tensor statistics (min, max, mean, std, shape, dtype, device, hash, etc.) are generated and saved in a .yaml file.
- The simple statistics are used as a pre-check before comparing the full tensors.
- These yaml files can be saved with git without having to worry about accidentally saving huge files.
- Full tensors are moved to CPU and saved in a
.npy
file (same as ndarrays_regression), and these .npy files are gitignored. - Adds a
--gen-missing
argument (default True) which will generate any missing regression files without raising error, as opposed to pytest-regression's--regen-all
which regenerates all regression files.
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
Built Distribution
Close
Hashes for tensor_regression-0.0.3.post2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2721f0825d6a286b87112ed4c820e443511f54ff1dce17251cfbd756ac92f24a |
|
MD5 | f64ea726feead756dcebf5cf2adcd413 |
|
BLAKE2b-256 | b5caa94940eee63b11da4a3d1a4e4c54eb147f6ce9cda0158244ce9e6a7cb868 |
Close
Hashes for tensor_regression-0.0.3.post2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aae3f74c6f3dafe587ad38d7b3fe6ba71a04fd0319d3c178ad8a2107eade6f95 |
|
MD5 | b80d3350cb27831e7022478c242c3e2b |
|
BLAKE2b-256 | f1b9a43476e57b3579ff857ac1427e540c35ef8d045231389e32c1f8d4b48c99 |