website/docs/tensor-shapes-contributing.mdx
{/*
Pyrefly's tensor shape tracking is designed so that coverage of the PyTorch library can be extended without understanding Pyrefly's internals. There are three ways to contribute:
.pyi files with shape-generic type signatures for
PyTorch modules and functions (e.g., nn.Linear, torch.mm).reshape, cat, F.interpolate).For detailed instructions on writing stubs, DSL functions, and porting models, see the Tensor Shapes Contributing Guide in the repository.