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

Method main

tests/python/relax/test_frontend_tflite.py:147–152  ·  view source on GitHub ↗
(x: R.Tensor((2, 2), dtype="float32"))

Source from the content-addressed store, hash-verified

145 class Expected:
146 @R.function
147 def main(x: R.Tensor((2, 2), dtype="float32")) -> R.Tensor((2, 2), dtype="float32"):
148 R.func_attr({"num_input": 1})
149 with R.dataflow():
150 gv: R.Tensor((2, 2), dtype="float32") = R.add(x, R.const(1.0, "float32"))
151 R.output(gv)
152 return gv
153
154 verify(AddOne2D, Expected)
155

Callers 1

Calls 15

TensorMethod · 0.80
dataflowMethod · 0.80
outputMethod · 0.80
subtractMethod · 0.80
powerMethod · 0.80
whereMethod · 0.80
avg_pool2dMethod · 0.80
flipMethod · 0.80
conv3d_transposeMethod · 0.80
scatter_ndMethod · 0.80
preluMethod · 0.80
call_dps_packedMethod · 0.80

Tested by

no test coverage detected