Home / Function/ get_shapes() — pytorch Function Reference

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
  5c0b54aa_ac77_fbf9_e176_6951222c00c4["get_shapes()"]
  02c5a438_2afc_6211_922d_df8faf0ed669["benchmark()"]
  02c5a438_2afc_6211_922d_df8faf0ed669 -->|calls| 5c0b54aa_ac77_fbf9_e176_6951222c00c4
  style 5c0b54aa_ac77_fbf9_e176_6951222c00c4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

benchmarks/dynamo/genai_layers/kernels.py lines 126–139

    def get_shapes(self) -> tuple[tuple[int, ...], ...]:
        return (
            (32768, 256),
            (32768, 512),
            (32768, 1024),
            (32768, 2048),
            (32768, 4096),
            (32768, 8192),
            (32768, 16384),
            (32768, 32768),
            (32768, 65536),
            (16384, 131072),
            (8192, 262144),
        )

Subdomains

Called By

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