Home / Function/ cast_to_fp32() — pytorch Function Reference

cast_to_fp32() — pytorch Function Reference

Architecture documentation for the cast_to_fp32() function in common.py from the pytorch codebase.

Entity Profile

Dependency Diagram

graph TD
  966e8ab0_98c7_2f6a_55eb_0fa446f905f8["cast_to_fp32()"]
  da8c81f0_c44b_4b89_914d_318c84a98a42["cast_based_on_args()"]
  da8c81f0_c44b_4b89_914d_318c84a98a42 -->|calls| 966e8ab0_98c7_2f6a_55eb_0fa446f905f8
  bbf77550_9fd0_5fa7_61ba_9de1b1cde65f["cast_to()"]
  966e8ab0_98c7_2f6a_55eb_0fa446f905f8 -->|calls| bbf77550_9fd0_5fa7_61ba_9de1b1cde65f
  style 966e8ab0_98c7_2f6a_55eb_0fa446f905f8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

benchmarks/dynamo/common.py lines 1710–1711

def cast_to_fp32(model, inputs):
    return cast_to(torch.float32, model, inputs)

Subdomains

Calls

Frequently Asked Questions

What does cast_to_fp32() do?
cast_to_fp32() is a function in the pytorch codebase.
What does cast_to_fp32() call?
cast_to_fp32() calls 1 function(s): cast_to.
What calls cast_to_fp32()?
cast_to_fp32() is called by 1 function(s): cast_based_on_args.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free