MCPcopy Index your code
hub / github.com/apache/tvm / rand

Function rand

tests/python/relax/test_transform_gradient_numeric.py:29–30  ·  view source on GitHub ↗
(dtype, *shape)

Source from the content-addressed store, hash-verified

27
28
29def rand(dtype, *shape):
30 return tvm.runtime.tensor(np.random.rand(*shape).astype(dtype))
31
32
33def _legalize_and_build(mod, target, dev):

Callers 4

test_manual_gradientFunction · 0.85
test_mlp_blockbuilderFunction · 0.85
test_complexFunction · 0.85
test_matmulFunction · 0.85

Calls 1

astypeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…