PyreFly Lab

PyTorch Static Tensor Shape Type Checker

Static dimensional constraint verification inspired by PyTorch Conf 2026
Static Shape Constraint Verification CHECKING
Static Type Verification Passed: All dimensional constraints and einsum products sound.
Static Verification Status: Sound (0 Type Errors)
Active Contract: Tensor[B=4, S=128, D=512] -> MultiHeadAttention -> Tensor[B=4, S=128, D=512]
PEP 695 / PyreFly Type Stub
Static Assertion Contract
# Generated PyreFly Tensor Contract Stub
from typing import TypeVar
import torch
from torch import Tensor

B = TypeVar("B")  # Batch
S = TypeVar("S")  # Sequence
D = TypeVar("D")  # Dimension
H = TypeVar("H")  # Heads
Enjoy this tool? Build your own with Super