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

Method __init__

imperative/python/test/unit/utils/test_cgtools.py:107–111  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

105def test_get_opr_seq():
106 class Net(M.Module):
107 def __init__(self):
108 super().__init__()
109 self.data = megengine.tensor(
110 np.random.random((1, 1, 4, 4)), dtype=np.float32
111 )
112
113 def forward(self, input):
114 A = input.shape[0]

Callers

nothing calls this directly

Calls 1

tensorMethod · 0.80

Tested by

no test coverage detected