{"id":15156591,"url":"https://github.com/pytorch/maskedtensor","last_synced_at":"2025-09-30T05:31:21.484Z","repository":{"id":37057065,"uuid":"418597784","full_name":"pytorch/maskedtensor","owner":"pytorch","description":"MaskedTensors for PyTorch","archived":true,"fork":false,"pushed_at":"2022-07-17T14:17:11.000Z","size":3355,"stargazers_count":38,"open_issues_count":8,"forks_count":10,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-01-11T14:49:15.179Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pytorch.org/maskedtensor","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pytorch.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-18T17:14:52.000Z","updated_at":"2024-01-04T17:02:28.000Z","dependencies_parsed_at":"2022-07-12T05:18:32.799Z","dependency_job_id":null,"html_url":"https://github.com/pytorch/maskedtensor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytorch%2Fmaskedtensor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytorch%2Fmaskedtensor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytorch%2Fmaskedtensor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytorch%2Fmaskedtensor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pytorch","download_url":"https://codeload.github.com/pytorch/maskedtensor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234707371,"owners_count":18874671,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-26T19:23:32.655Z","updated_at":"2025-09-30T05:31:16.176Z","avatar_url":"https://github.com/pytorch.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# maskedtensor\n\n**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\nopen a Github issue; we welcome any thoughts, feedback, and contributions!**\n\nMaskedTensor is a prototype library that is part of the [PyTorch](https://pytorch.org/) 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.\n\n## Installation\n\n### Binaries\n\nTo install the official MaskedTensor via pip, use the following command:\n\n```\npip install maskedtensor\n```\n\nFor the dev (unstable) nightly version that contains the most recent features, please replace `maskedtensor` with `maskedtensor-nightly`.\n\nNote that MaskedTensor requires PyTorch \u003e= 1.11, which you can get on the [the main website](https://pytorch.org/get-started/locally/)\n\n### From Source\n\nTo install from source, you will need Python 3.7 or later, and we highly recommend that you use an Anaconda environment. Then run:\n\n```\npython setup.py develop\n```\n\n## Documentation\n\nPlease find documentation on the [MaskedTensor Website](https://pytorch.org/maskedtensor/main/index.html).\n\n### Building documentation\n\nPlease follow the instructions in the [docs README](https://github.com/pytorch/maskedtensor/tree/main/docs).\n\n### Notebooks\n\nFor 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](https://pytorch.org/maskedtensor/main/index.html).\n\n## License\n\nmaskedtensor is licensed under BSD 3-Clause\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpytorch%2Fmaskedtensor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpytorch%2Fmaskedtensor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpytorch%2Fmaskedtensor/lists"}