Skip to main content

Batched matrix-vector multiplication in PyTorch which intelligently rearranges tensor shapes for efficient computation.

Project description

torch-bmv

tests workflow status codecov

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.

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

torch_bmv-0.1.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

torch_bmv-0.1.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file torch_bmv-0.1.1.tar.gz.

File metadata

  • Download URL: torch_bmv-0.1.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for torch_bmv-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f7e93b4c9cff42f3de0c3dae6ecd3c788c74cfbe7da3a0c5b38b9cbe5a6af745
MD5 5e83e921a7cfca621214de4daba758f2
BLAKE2b-256 6c897fcba546aa77ac1c64a9b411d819abbbdb6d91b6b77cdcb4b6612f717fda

See more details on using hashes here.

Provenance

The following attestation bundles were made for torch_bmv-0.1.1.tar.gz:

Publisher: publish.yml on hchau630/torch-bmv

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

File details

Details for the file torch_bmv-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: torch_bmv-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for torch_bmv-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 225c2835b6b767bfef7c78b398f8a41fee343e431e3887fe6f10f4771e2252bb
MD5 b507f077352825ebb9b827fcf6dab13f
BLAKE2b-256 0eecf032ba73b8eb36220a1a2b6ab8015a4c7231893b01b7edf6c7faef29d33f

See more details on using hashes here.

Provenance

The following attestation bundles were made for torch_bmv-0.1.1-py3-none-any.whl:

Publisher: publish.yml on hchau630/torch-bmv

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