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

Method main

tests/python/contrib/test_example_npu.py:91–95  ·  view source on GitHub ↗
(x: R.Tensor((2, 8), "float32"))

Source from the content-addressed store, hash-verified

89
90 @R.function
91 def main(x: R.Tensor((2, 8), "float32")) -> R.Tensor((2, 8), "float32"):
92 with R.dataflow():
93 z = relax.op.nn.softmax(x)
94 R.output(z)
95 return z
96
97
98# Check if the example NPU runtime is available

Callers 7

test_hipblas.pyFile · 0.45
test_tvmjs.pyFile · 0.45
test_memoize.pyFile · 0.45
test_tvmbot.pyFile · 0.45
test_ci.pyFile · 0.45

Calls 4

TensorMethod · 0.80
dataflowMethod · 0.80
outputMethod · 0.80
softmaxMethod · 0.45

Tested by

no test coverage detected