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

Method __init__

python/oneflow/test/graph/test_graph.py:167–169  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

165 def test_block_scope(test_case):
166 class SubModule0(flow.nn.Module):
167 def __init__(self):
168 super().__init__()
169 self.conv1 = flow.nn.Conv2d(1, 1, 5)
170
171 def forward(self, x):
172 scope = scope_util.current_scope()

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected