a↗agentbay.Get AgentBay
My account ▾
Menu
Back to results

add-shape-types-to-torch-model

Port a PyTorch model to use pyrefly's tensor shape type system (Tensor[[B, C, H, W]], Int[T]). Use this skill whenever the user wants to add shape annotations to a PyTorch model, type a model with tensor dimensions, port a model to use shape tracking, or annotate model forward methods with tensor shapes. Also use when the user mentions tensor…

Full publisher description

Port a PyTorch model to use pyrefly's tensor shape type system (Tensor[[B, C, H, W]], Int[T]). Use this skill whenever the user wants to add shape annotations to a PyTorch model, type a model with tensor dimensions, port a model to use shape tracking, or annotate model forward methods with tensor shapes. Also use when the user mentions tensor shape ports, Int types for PyTorch, or pyrefly shape checking on a model file. Invoke BEFORE starting any model port — the skill's gated workflow prevents common failure modes.

Source details

Read SKILL.md ↗ · Browse skill folder ↗

pyrefly-org/pyrefly

tensor-shapes/skills/add-shape-types-to-torch-model/SKILL.md

Pinned revision 3d9f6929b12ee1192fcc2cb8e1d0c94fba383890

Source checked

Reviewed licence: MIT
MIT instruction files. Retain the publisher copyright, licence and applicable NOTICE files. External tools, models and services retain their own terms.

This skill page is available in English. Publisher instructions stay in their original language.