MCPcopy Create free account
hub / github.com/pytorch/executorch / __deepcopy__

Method __deepcopy__

exir/program/_program.py:559–566  ·  view source on GitHub ↗
(
        self, memo: Optional[Dict[int, Any]] = None
    )

Source from the content-addressed store, hash-verified

557 return executorch_prog
558
559 def __deepcopy__(
560 self, memo: Optional[Dict[int, Any]] = None
561 ) -> "ExirExportedProgram":
562 new_eep = ExirExportedProgram(
563 copy.deepcopy(self.exported_program, memo),
564 self.after_to_edge_passes,
565 )
566 return new_eep
567
568
569@compatibility(is_backward_compatible=False)

Callers

nothing calls this directly

Calls 1

ExirExportedProgramClass · 0.85

Tested by

no test coverage detected