get_shapes() — pytorch Function Reference
Architecture documentation for the get_shapes() function in kernels.py from the pytorch codebase.
Entity Profile
Dependency Diagram
graph TD 41eae90d_e6f1_e9de_d6c3_8a479d504904["get_shapes()"] e5564ea1_2d08_4990_c09b_7d9b97e2b066["benchmark()"] e5564ea1_2d08_4990_c09b_7d9b97e2b066 -->|calls| 41eae90d_e6f1_e9de_d6c3_8a479d504904 style 41eae90d_e6f1_e9de_d6c3_8a479d504904 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
benchmarks/dynamo/genai_layers/kernels.py lines 576–588
def get_shapes(self) -> tuple[tuple[int, ...], ...]:
# OOM for (16384, 131072) on h100
return (
(32768, 256),
(32768, 512),
(32768, 1024),
(32768, 2048),
(32768, 4096),
(32768, 8192),
(32768, 16384),
(32768, 32768),
(32768, 65536),
) + extra_shapes_for_norm
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does get_shapes() do?
get_shapes() is a function in the pytorch codebase.
What calls get_shapes()?
get_shapes() is called by 1 function(s): benchmark.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free