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

Method main

tests/python/relax/test_transform_legalize_ops_binary.py:42–44  ·  view source on GitHub ↗
(x: R.Tensor((1, 2, 3), "float32"), y: R.Tensor((4, 3, 2, 1), "float32"))

Source from the content-addressed store, hash-verified

40 class Expected:
41 @R.function
42 def main(x: R.Tensor((1, 2, 3), "float32"), y: R.Tensor((4, 3, 2, 1), "float32")) -> R.Tensor((4, 3, 2, 3), "float32"):
43 gv = R.call_tir(Expected.add, (x, y), R.Tensor((4, 3, 2, 3), dtype="float32"))
44 return gv
45
46 @T.prim_func(private=True, s_tir=True)
47 def add(rxplaceholder: T.Buffer((T.int64(1), T.int64(2), T.int64(3)), "float32"), rxplaceholder_1: T.Buffer((T.int64(4), T.int64(3), T.int64(2), T.int64(1)), "float32"), T_add: T.Buffer((T.int64(4), T.int64(3), T.int64(2), T.int64(3)), "float32")):

Callers

nothing calls this directly

Calls 2

TensorMethod · 0.80
call_tirMethod · 0.80

Tested by

no test coverage detected