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

Method main

tests/python/relax/test_frontend_from_exported_program.py:139–146  ·  view source on GitHub ↗
(input_1: R.Tensor((1, 3, 10, 10), dtype="float32"))

Source from the content-addressed store, hash-verified

137 class expected:
138 @R.function
139 def main(input_1: R.Tensor((1, 3, 10, 10), dtype="float32")) -> R.Tuple(
140 R.Tensor((1, 3, 10, 10), dtype="float32")
141 ):
142 with R.dataflow():
143 lv: R.Tensor((1, 3, 10, 10), dtype="float32") = relax_op(input_1)
144 gv: R.Tuple(R.Tensor((1, 3, 10, 10), dtype="float32")) = (lv,)
145 R.output(gv)
146 return gv
147
148 verify_model(UnaryOp(), example_args, {}, expected)
149

Calls 15

TensorMethod · 0.80
dataflowMethod · 0.80
outputMethod · 0.80
greaterMethod · 0.80
whereMethod · 0.80
greater_equalMethod · 0.80
not_equalMethod · 0.80
subtractMethod · 0.80
maxMethod · 0.80
cond_true_branch_0Method · 0.80
cond_false_branch_1Method · 0.80
affine_gridMethod · 0.80

Tested by

no test coverage detected