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

Method __init__

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

Source from the content-addressed store, hash-verified

749
750class ProxyParameterList(get_para_list(ProxyModule)):
751 def __init__(
752 self,
753 origin: ParameterList = None,
754 prefix: str = "",
755 name: str = "",
756 belonged_graph: weakref.ProxyTypes = None,
757 ):
758 super().__init__()
759 self.to(GraphModule)._name_prefix = prefix
760 self.to(GraphModule)._name = name
761 self.to(GraphModule)._belonged_graph = belonged_graph
762 self.to(GraphModule)._belonged_block = weakref.proxy(self)
763 self._oneflow_internal_graphblock__set_origin(origin)
764 self.to(GraphModule)._is_executing_forward = True
765
766 def __getitem__(self, idx):
767 assert isinstance(idx, int)

Callers

nothing calls this directly

Calls 3

__init__Method · 0.45
toMethod · 0.45

Tested by

no test coverage detected