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

Method main

tests/python/relax/test_transform_legalize_ops_binary.py:34–36  ·  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

32 class Add:
33 @R.function
34 def main(x: R.Tensor((1, 2, 3), "float32"), y: R.Tensor((4, 3, 2, 1), "float32")) -> R.Tensor((4, 3, 2, 3), "float32"):
35 gv: R.Tensor((4, 3, 2, 3), "float32") = R.add(x, y)
36 return gv
37
38
39 @tvm.script.ir_module

Calls 5

TensorMethod · 0.80
greaterMethod · 0.80
less_equalMethod · 0.80
addMethod · 0.45
equalMethod · 0.45

Tested by

no test coverage detected