Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

maskedtensor

Warning: This is a prototype library that is actively under development. If you have suggestions or potential use cases that you'd like addressed, please open a Github issue; we welcome any thoughts, feedback, and contributions!

MaskedTensor is a prototype library that is part of the PyTorch project and is an extension of torch.Tensor that provides the ability to mask out the value for any given element. Elements with masked out values are ignored during computation and give the user access to advanced semantics such as masked reductions, safe softmax, masked matrix multiplication, filtering NaNs, and masking out certain gradient values.

Installation

Binaries

To install the official MaskedTensor via pip, use the following command:

pip install maskedtensor

For the dev (unstable) nightly version that contains the most recent features, please replace maskedtensor with maskedtensor-nightly.

Note that MaskedTensor requires PyTorch >= 1.11, which you can get on the the main website

From Source

To install from source, you will need Python 3.7 or later, and we highly recommend that you use an Anaconda environment. Then run:

python setup.py develop

Documentation

Please find documentation on the MaskedTensor Website.

Building documentation

Please follow the instructions in the docs README.

Notebooks

For an introduction and instructions on how to use MaskedTensors and what they are useful for, there are a nubmer of tutorials on the MaskedTensor website.

License

maskedtensor is licensed under BSD 3-Clause

Release files for maskedtensor-nightly 0.11.dev2022317

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for maskedtensor-nightly 0.11.dev2022317
File Interpreter ABI Platform
maskedtensor_nightly-0.11.dev2022317-py3-none-any.whl Python 3 none any Details
maskedtensor_nightly-0.11.dev2022316-py3-none-any.whl Python 3 none any Details

Total release size: 31.5 kB

Release files / maskedtensor_nightly-0.11.dev2022317-py3-none-any.whl

Download URL maskedtensor_nightly-0.11.dev2022317-py3-none-any.whl
Size 15.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0961eef26ecd8d3cb74c630630f60210a2314b0f95b90a3f63fbc02a6a4b49dc
BLAKE2b-256 checksum
How to use checksums
f19348b2fd80f21f538c5c436f226af86f9c0db0d134e379ea010aac38849dce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

Release files / maskedtensor_nightly-0.11.dev2022316-py3-none-any.whl

Download URL maskedtensor_nightly-0.11.dev2022316-py3-none-any.whl
Size 15.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
255bef786b429bff97023d89c2e0cb3b8428a0054a3f351d6f75eb89020c271d
BLAKE2b-256 checksum
How to use checksums
9cc2ce5526578225d83a72c782dae32a8bf27c19a90a2493f9ec85acd420bec8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.8.2 keyring/23.4.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page