Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tensor_regression-0.1.2.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tensor_regression-0.1.2-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file tensor_regression-0.1.2.tar.gz.

File metadata

  • Download URL: tensor_regression-0.1.2.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tensor_regression-0.1.2.tar.gz
Algorithm Hash digest
SHA256 d4505ed6cb2638536da638e80a8a879e389621306b9a3014a583aa5dae0ec72f
MD5 a047d88fccbcd0fd379072ffbe32f3bf
BLAKE2b-256 1d1f22e0554f5d415a242b5b95872be7f90fbed37e3670c687162cb3beb07726

See more details on using hashes here.

Provenance

The following attestation bundles were made for tensor_regression-0.1.2.tar.gz:

Publisher: publish.yml on lebrice/tensor_regression

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tensor_regression-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for tensor_regression-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 00fe39d8802e61e9f448c96ca90934566a8f29fe5bdf85af65407e6d34933bf5
MD5 2b5df1373ee361e8a7390566893f86ca
BLAKE2b-256 ea8344b0bc68fb124741fa1aced1e61607e63a57285f5dd2ab182cda06200fcf

See more details on using hashes here.

Provenance

The following attestation bundles were made for tensor_regression-0.1.2-py3-none-any.whl:

Publisher: publish.yml on lebrice/tensor_regression

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page