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

Function foo

tests/python/relax/test_tvmscript_parser.py:49–53  ·  view source on GitHub ↗
(x: R.Tensor((128, 128), "float32"))

Source from the content-addressed store, hash-verified

47def test_simple_func():
48 @R.function
49 def foo(x: R.Tensor((128, 128), "float32")) -> R.Tensor((128, 128), "float32"):
50 R.func_attr({"Primitive": True})
51 gv0 = R.call_dps_packed("extern_func", x, R.Tensor((128, 128), dtype="float32"))
52 gv1 = R.call_dps_packed("extern_dps_func", gv0, R.Tensor((128, 128), dtype="float32"))
53 return gv1
54
55 x = relax.Var("x", R.Tensor((128, 128), "float32"))
56 bb = relax.BlockBuilder()

Callers

nothing calls this directly

Calls 14

TensorMethod · 0.80
call_dps_packedMethod · 0.80
call_tirMethod · 0.80
shape_ofMethod · 0.80
ShapeMethod · 0.80
match_castMethod · 0.80
dataflowMethod · 0.80
outputMethod · 0.80
call_packedMethod · 0.80
addMethod · 0.45
multiplyMethod · 0.45
shapeMethod · 0.45

Tested by

no test coverage detected