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.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 511ef2ac21c06f0a1fa358878ffdedbe8aac19612aa9027e5ed8fa34ab5b16f3 |
|
MD5 | 56c1262f6d9642d02261f7c32e4a93f6 |
|
BLAKE2b-256 | 2869f5aa2f1d5f911760d6f71ee2eed1a634d3026305f3f436be7e82a91ea303 |