Skip to main content

Shape typing primitives and DSL for Pyrefly tensor shape tracking

Project description

pyrefly-shape-extensions

Runtime helpers for Pyrefly tensor shape annotations.

This package provides the lightweight shape_extensions module used by Pyrefly's tensor shape stubs. It defines runtime no-op versions of the shape typing primitives so annotations such as Tensor[B, T], TypeVar("B"), and assert_shape(x, (2, 3)) can be evaluated by Python while Pyrefly uses the corresponding stubs for static shape checking.

The package is versioned in lockstep with Pyrefly.

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

pyrefly_shape_extensions-1.2.0.dev1.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file pyrefly_shape_extensions-1.2.0.dev1.tar.gz.

File metadata

File hashes

Hashes for pyrefly_shape_extensions-1.2.0.dev1.tar.gz
Algorithm Hash digest
SHA256 2f7114cd9f0ae1023513e6a914c3704a119e0cc08943b57cc1f8757c18a9a8ea
MD5 acf97227b78645ebfd542a3660916d02
BLAKE2b-256 f46d7d1694f9f2b3fe1328097815bd62d4cb64106470a4b1e0277c1de37b7166

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyrefly_shape_extensions-1.2.0.dev1.tar.gz:

Publisher: publish_shape_stubs.yml on facebook/pyrefly

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

File details

Details for the file pyrefly_shape_extensions-1.2.0.dev1-py3-none-any.whl.

File metadata

File hashes

Hashes for pyrefly_shape_extensions-1.2.0.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 3a8111e7341426aa6662fbc7dff09135a52defbec6fe20f9c9e478c68928fe12
MD5 3ce4c01a9f824ba09a4a77735be08fae
BLAKE2b-256 82d04071a23ec183e077496eb5722bd1ab9db41f8268ad07f5a896eee032b114

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyrefly_shape_extensions-1.2.0.dev1-py3-none-any.whl:

Publisher: publish_shape_stubs.yml on facebook/pyrefly

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