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

Method main

tests/python/relax/test_frontend_from_fx.py:621–630  ·  view source on GitHub ↗
(inp_0: R.Tensor((1, 8, 10, 15), dtype="float32"))

Source from the content-addressed store, hash-verified

619 class expected:
620 @R.function
621 def main(inp_0: R.Tensor((1, 8, 10, 15), dtype="float32")) -> R.Tensor(
622 (1, 2, 20, 30), dtype="float32"
623 ):
624 with R.dataflow():
625 lv: R.Tensor((1, 2, 20, 30), dtype="float32") = R.nn.pixel_shuffle(
626 inp_0, upscale_factor=2
627 )
628 gv: R.Tensor((1, 2, 20, 30), dtype="float32") = lv
629 R.output(gv)
630 return gv
631
632 input_infos = [([1, 8, 10, 15], "float32")]
633 verify_model(PixelShuffle1(2), input_infos, {}, expected)

Callers 1

Calls 14

TensorMethod · 0.80
dataflowMethod · 0.80
outputMethod · 0.80
preluMethod · 0.80
greaterMethod · 0.80
scatter_elementsMethod · 0.80
expand_dimsMethod · 0.45
reshapeMethod · 0.45
shapeMethod · 0.45
equalMethod · 0.45
sumMethod · 0.45
astypeMethod · 0.45

Tested by

no test coverage detected