MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / SimpleNet

Class SimpleNet

imperative/python/test/unit/jit/test_tracing.py:318–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316
317def test_split_dump():
318 class SimpleNet(Module):
319 def __init__(self, num_segments: int = 3):
320 super().__init__()
321 self.num_segments = num_segments
322
323 def forward(self, x):
324 x = F.split(x, self.num_segments, axis=1)
325 return x
326
327 model = SimpleNet()
328 model.eval()

Callers 1

test_split_dumpFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_split_dumpFunction · 0.68