Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
29
def
rand(dtype, *shape):
30
return
tvm.runtime.tensor(np.random.rand(*shape).astype(dtype))
31
32
33
def
_legalize_and_build(mod, target, dev):
Callers
4
test_manual_gradient
Function · 0.85
test_mlp_blockbuilder
Function · 0.85
test_complex
Function · 0.85
test_matmul
Function · 0.85
Calls
1
astype
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…