Home / Function/ scale() — pytorch Function Reference

scale() — pytorch Function Reference

Architecture documentation for the scale() function in microbench.py from the pytorch codebase.

Entity Profile

Relationship Graph

Source Code

benchmarks/dynamo/microbenchmarks/microbench.py lines 80–81

    def scale(x, m, d):
        return ((x - m) / torch.clip(d, 1e-4),)

Subdomains

Analyze Your Own Codebase

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

Try Supermodel Free