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.post1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bfe1882232cb1109d700f8983218c47e37ef6a956e8c79bc1bb01fcd02fb666 |
|
MD5 | c97fa97522d14fb79026ad00119297d4 |
|
BLAKE2b-256 | 73bea999bd7c02677921569ba303c70b0bb11e74b7f912cc745854c52dcba907 |
Close
Hashes for tensor_regression-0.0.3.post1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0809a225f3c0bfa79ec07ae31186e39fa60bfa4d2fbede1a24f2e98e2c6cf188 |
|
MD5 | f154f2cdda6be969dfed429fe9479258 |
|
BLAKE2b-256 | 606fec1a15ef5b3d387149ef99c580984d77bf5c722c4cc27708711e049d6dc0 |