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

Method main

tests/python/relax/test_frontend_from_fx.py:563–575  ·  view source on GitHub ↗
(x: R.Tensor((1, 3, 10, 10), dtype="float32"))

Source from the content-addressed store, hash-verified

561 class expected_replicate:
562 @R.function
563 def main(x: R.Tensor((1, 3, 10, 10), dtype="float32")) -> R.Tensor(
564 (1, 3, 14, 12), dtype="float32"
565 ):
566 with R.dataflow():
567 lv: R.Tensor((1, 3, 14, 12), dtype="float32") = R.nn.pad(
568 x,
569 pad_width=[0, 0, 0, 0, 2, 2, 1, 1],
570 pad_mode="replicate",
571 pad_value=0.0,
572 )
573 gv: R.Tensor((1, 3, 14, 12), dtype="float32") = lv
574 R.output(gv)
575 return gv
576
577 @tvm.script.ir_module
578 class expected_circular:

Callers

nothing calls this directly

Calls 4

TensorMethod · 0.80
dataflowMethod · 0.80
outputMethod · 0.80
padMethod · 0.45

Tested by

no test coverage detected