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

Function test

tests/python/relax/test_frontend_nn_op.py:43–50  ·  view source on GitHub ↗
(x: R.Tensor((1, 10), dtype="float32"), _io: R.Object)

Source from the content-addressed store, hash-verified

41 # fmt: off
42 @R.function
43 def test(x: R.Tensor((1, 10), dtype="float32"), _io: R.Object):
44 R.func_attr({"num_input": 2})
45 with R.dataflow():
46 square: R.Tensor((1, 10), dtype="float32") = R.square(x)
47 sqrt: R.Tensor((1, 10), dtype="float32") = R.sqrt(x)
48 gv1 = (square, sqrt), (_io,)
49 R.output(gv1)
50 return gv1
51 # fmt: on
52
53 m = Model()

Callers

nothing calls this directly

Calls 15

TensorMethod · 0.80
dataflowMethod · 0.80
outputMethod · 0.80
subtractMethod · 0.80
not_equalMethod · 0.80
maxMethod · 0.80
minMethod · 0.80
squeezeMethod · 0.80
resize2dMethod · 0.80
preluMethod · 0.80
group_normMethod · 0.80
triuMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…