MCPcopy Create free account
hub / github.com/apache/tvm / main

Method main

tests/python/relax/test_transform_canonicalize_bindings.py:276–282  ·  view source on GitHub ↗
(x: R.Tuple(R.Tensor(("m", "n"))))

Source from the content-addressed store, hash-verified

274 class Before:
275 @R.function
276 def main(x: R.Tuple(R.Tensor(("m", "n")))):
277 y = x
278 o, p = T.int64(), T.int64()
279 z = R.match_cast(x, R.Tuple(R.Tensor((o, p))))
280 w = z
281 q = R.add(w[0], y[0])
282 return R.add(q, w[0])
283
284 @I.ir_module
285 class Expected:

Callers

nothing calls this directly

Calls 12

inner_funcFunction · 0.85
TensorMethod · 0.80
match_castMethod · 0.80
dataflowMethod · 0.80
outputMethod · 0.80
subtractMethod · 0.80
addMethod · 0.45
matmulMethod · 0.45
strided_sliceMethod · 0.45
multiplyMethod · 0.45
printMethod · 0.45
divideMethod · 0.45

Tested by

no test coverage detected