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

Method __init__

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

Source from the content-addressed store, hash-verified

184
185 class SubModule1(flow.nn.Module):
186 def __init__(self):
187 super().__init__()
188 self.fc1 = flow.nn.Linear(36, 4, False)
189 self.register_buffer("dummy_buff", flow.Tensor(1, 4))
190
191 def forward(self, x):
192 scope = scope_util.current_scope()

Callers

nothing calls this directly

Calls 3

register_bufferMethod · 0.80
__init__Method · 0.45
TensorMethod · 0.45

Tested by

no test coverage detected