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

Method main

tests/python/relax/test_transform_meta_schedule_tuning.py:80–86  ·  view source on GitHub ↗
(x: R.Tensor((32, 32), "float32"), w: R.Tensor((32, 32), "float32"))

Source from the content-addressed store, hash-verified

78
79 @R.function
80 def main(x: R.Tensor((32, 32), "float32"), w: R.Tensor((32, 32), "float32")) -> R.Tensor:
81 cls = InputModule
82 with R.dataflow():
83 lv0 = R.call_tir(cls.tir_matmul, (x, w), R.Tensor((32, 32), dtype="float32"))
84 lv1 = R.call_tir(cls.tir_relu, (lv0), R.Tensor((32, 32), dtype="float32"))
85 R.output(lv1)
86 return lv1
87
88
89# TODO(@sunggg): determine how to pass MS database object across different passes.

Calls 4

TensorMethod · 0.80
dataflowMethod · 0.80
call_tirMethod · 0.80
outputMethod · 0.80

Tested by

no test coverage detected