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

Function rand_tensor

imperative/python/test/unit/core/test_subgraph.py:92–93  ·  view source on GitHub ↗
(shape, dtype=dtype, device=device)

Source from the content-addressed store, hash-verified

90 primitive_batch_norm = trace(symbolic=symbolic)(primitive_batch_norm)
91
92 def rand_tensor(shape, dtype=dtype, device=device):
93 return megengine.tensor(np.random.random(shape), dtype=dtype, device=device)
94
95 # skip this test because could not do several reduce sequentially with opr cache
96 return

Callers 1

test_subgraphFunction · 0.85

Calls 1

tensorMethod · 0.80

Tested by

no test coverage detected