MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / __init__

Method __init__

python/oneflow/nn/graph/proxy.py:735–747  ·  view source on GitHub ↗
(
        self,
        origin: ModuleDict = None,
        prefix: str = "",
        name: str = "",
        belonged_graph: weakref.ProxyTypes = None,
    )

Source from the content-addressed store, hash-verified

733
734class ProxyModuleDict(get_dict(ProxyModule)):
735 def __init__(
736 self,
737 origin: ModuleDict = None,
738 prefix: str = "",
739 name: str = "",
740 belonged_graph: weakref.ProxyTypes = None,
741 ):
742 super().__init__()
743 self.to(GraphModule)._name_prefix = prefix
744 self.to(GraphModule)._name = name
745 self.to(GraphModule)._belonged_graph = belonged_graph
746 self.to(GraphModule)._belonged_block = weakref.proxy(self)
747 self._oneflow_internal_graphblock__set_origin(origin)
748
749
750class ProxyParameterList(get_para_list(ProxyModule)):

Callers

nothing calls this directly

Calls 3

__init__Method · 0.45
toMethod · 0.45

Tested by

no test coverage detected