Home / Function/ deepcopy_model() — pytorch Function Reference

deepcopy_model() — pytorch Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  4b936914_ae3d_7efa_4e57_180bdf6f9020["deepcopy_model()"]
  684ace56_6d9f_5ea1_f47a_cb8aa5834a49["validate_model()"]
  684ace56_6d9f_5ea1_f47a_cb8aa5834a49 -->|calls| 4b936914_ae3d_7efa_4e57_180bdf6f9020
  6a0a2015_4bf4_1e7a_daa6_dbf2c23883c7["deepcopy_and_maybe_parallelize()"]
  6a0a2015_4bf4_1e7a_daa6_dbf2c23883c7 -->|calls| 4b936914_ae3d_7efa_4e57_180bdf6f9020
  style 4b936914_ae3d_7efa_4e57_180bdf6f9020 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

benchmarks/dynamo/common.py lines 1990–1991

    def deepcopy_model(self, model):
        return copy.deepcopy(model)

Subdomains

Frequently Asked Questions

What does deepcopy_model() do?
deepcopy_model() is a function in the pytorch codebase.
What calls deepcopy_model()?
deepcopy_model() is called by 2 function(s): deepcopy_and_maybe_parallelize, validate_model.

Analyze Your Own Codebase

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

Try Supermodel Free