Skip to main content

assoc-scan

A minimal Pytorch implementation of an associative scan, with support for accelerated backends.

Install

$ pip install assoc-scan

Usage

import torch
from assoc_scan import AssocScan

scan = AssocScan()

gates = torch.randn(1, 1024, 512).sigmoid()
inputs = torch.randn(1, 1024, 512)

out = scan(gates, inputs) # (1, 1024, 512)

To use the accelerated version, simply pass use_accelerated = True and ensure accelerated-scan is installed.

scan = AssocScan(use_accelerated = True)

out = scan(gates, inputs)

Citations

@software{Kyrylov_Accelerated_Scan_2024,
    author    = {Kyrylov, Volodymyr},
    doi       = {10.5281/zenodo.10600962},
    month     = {jan},
    title     = {{Accelerated Scan}},
    version   = {0.1.2},
    year      = {2024}
}

Metadata

Release files for assoc-scan 0.0.7

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

Source distribution (sdist)

Source distribution for assoc-scan 0.0.7
File Size Uploaded Provenance Actions
assoc_scan-0.0.7.tar.gz 5.8 kB Without provenance Details for assoc_scan-0.0.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for assoc-scan 0.0.7
File Interpreter ABI Platform Actions
assoc_scan-0.0.7-py3-none-any.whl Python 3 none any Details for assoc_scan-0.0.7-py3-none-any.whl

Total release size: 11.8 kB

Release files / assoc_scan-0.0.7.tar.gz

Download URL assoc_scan-0.0.7.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f609b8525c78ff2ce0867240613ca91efedf775f6bca4b258a1a63c3454c46d5
BLAKE2b-256 checksum
How to use checksums
a2dc51a28e31015ee9ebe7e965980ff58ee9e4d8ddaaea0e55e869eeed8fdc96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.17

Release files / assoc_scan-0.0.7-py3-none-any.whl

Download URL assoc_scan-0.0.7-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c6dcbc5dc1109830698681aeb4218ee4745586b098cfbe2ec5987beb7cc9be35
BLAKE2b-256 checksum
How to use checksums
6d1b638747907d08548b8aa0bcafd7edb841757be981589ea8c4980cb241f60d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.17

Security for assoc-scan 0.0.7

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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