MCPcopy Create free account
hub / github.com/apache/tvm / multiple_calls

Method multiple_calls

tests/python/relax/test_relax_operators.py:461–464  ·  view source on GitHub ↗
(x: R.Tensor((2,), "float32"))

Source from the content-addressed store, hash-verified

459
460 @R.function
461 def multiple_calls(x: R.Tensor((2,), "float32")):
462 y = R.call_py_func(R.str("torch_relu"), (x,), out_sinfo=R.Tensor((2,), "float32"))
463 z = R.call_py_func(R.str("torch_sigmoid"), (y,), out_sinfo=R.Tensor((2,), "float32"))
464 return z
465
466 np.random.seed(0)
467 x_data = np.array([-1.0, 0.0, 1.0], dtype=np.float32)

Callers

nothing calls this directly

Calls 2

TensorMethod · 0.80
call_py_funcMethod · 0.80

Tested by

no test coverage detected