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

Class mod

tests/python/relax/test_vm_build.py:71–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69
70 @tvm.script.ir_module
71 class mod:
72 @R.function
73 def foo(x: R.Tensor((3, 4), "float32"), y: R.Tensor((3, 4), "float32")):
74 z = R.call_pure_packed(
75 "test.vm.identity", x, y, sinfo_args=(R.Tensor(ndim=2, dtype="float32"))
76 )
77 return y
78
79 ex = relax.build(mod, exec_mode=exec_mode)
80 inp1 = tvm.runtime.tensor(np.random.rand(3, 4).astype(np.float32))

Calls

no outgoing calls