scale() — pytorch Function Reference
Architecture documentation for the scale() function in common.py from the pytorch codebase.
Entity Profile
Dependency Diagram
graph TD cccef8f7_1d69_110e_5c7c_8788403285fe["scale()"] b66902f6_4c0e_bd3b_c664_55e9f6f9007d["forward_and_backward_pass()"] b66902f6_4c0e_bd3b_c664_55e9f6f9007d -->|calls| cccef8f7_1d69_110e_5c7c_8788403285fe style cccef8f7_1d69_110e_5c7c_8788403285fe fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
benchmarks/dynamo/common.py lines 1715–1716
def scale(self, loss):
return loss
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does scale() do?
scale() is a function in the pytorch codebase.
What calls scale()?
scale() is called by 1 function(s): forward_and_backward_pass.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free