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

Method __init__

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

Source from the content-addressed store, hash-verified

30
31class SubModule(flow.nn.Module):
32 def __init__(self):
33 super().__init__()
34 self.conv1 = flow.nn.Conv2d(1, 1, 5)
35 self.relu = flow.nn.ReLU()
36
37 def forward(self, x):
38 x = self.conv1(x)

Callers 12

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected