torch-bmv
Batched matrix-vector multiplication in PyTorch which intelligently rearranges tensor shapes for efficient computation.
Install
pip install torch-bmv
Example
import torch
from torch_bmv import bmv
A = torch.randn(1, 4, 5)
x = torch.randn(10, 5)
out = bmv(A, x)
assert out.shape == (10, 4)
Benchmarks
Benchmark results can be viewed at https://hchau630.github.io/torch-bmv.
Release files for torch-bmv 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| torch_bmv-0.1.1.tar.gz | 3.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| torch_bmv-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:7.4 kB
Release files / torch_bmv-0.1.1.tar.gz
| Download URL | torch_bmv-0.1.1.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f7e93b4c9cff42f3de0c3dae6ecd3c788c74cfbe7da3a0c5b38b9cbe5a6af745
|
|
BLAKE2b-256 checksum How to use checksums |
6c897fcba546aa77ac1c64a9b411d819abbbdb6d91b6b77cdcb4b6612f717fda
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 1, 2025.
Transparency logRelease files / torch_bmv-0.1.1-py3-none-any.whl
| Download URL | torch_bmv-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
225c2835b6b767bfef7c78b398f8a41fee343e431e3887fe6f10f4771e2252bb
|
|
BLAKE2b-256 checksum How to use checksums |
0eecf032ba73b8eb36220a1a2b6ab8015a4c7231893b01b7edf6c7faef29d33f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 1, 2025.
Transparency log