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

Method __init__

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

Source from the content-addressed store, hash-verified

684
685class ProxySequential(get_seq(ProxyModule)):
686 def __init__(
687 self,
688 origin: Sequential = None,
689 prefix: str = "",
690 name: str = "",
691 belonged_graph: weakref.ProxyTypes = None,
692 ):
693 super().__init__()
694 self.to(GraphModule)._name_prefix = prefix
695 self.to(GraphModule)._name = name
696 self.to(GraphModule)._belonged_graph = belonged_graph
697 self.to(GraphModule)._belonged_block = weakref.proxy(self)
698 self._oneflow_internal_graphblock__set_origin(origin)
699
700
701class ProxyModuleList(get_list(ProxyModule)):

Callers

nothing calls this directly

Calls 3

__init__Method · 0.45
toMethod · 0.45

Tested by

no test coverage detected