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

Method main

tests/python/relax/test_transform_legalize_ops_binary.py:173–178  ·  view source on GitHub ↗
(
            x: R.Tensor([64, 32, 16], "float32"),
            y: R.Prim("float32"),
        )

Source from the content-addressed store, hash-verified

171 class Before:
172 @R.function
173 def main(
174 x: R.Tensor([64, 32, 16], "float32"),
175 y: R.Prim("float32"),
176 ):
177 gv = R.add(x, y)
178 return gv
179
180 @I.ir_module(s_tir=True)
181 class Expected:

Callers

nothing calls this directly

Calls 15

TensorMethod · 0.80
floor_divideMethod · 0.80
powerMethod · 0.80
atan2Method · 0.80
subtractMethod · 0.80
greaterMethod · 0.80
greater_equalMethod · 0.80
lessMethod · 0.80
less_equalMethod · 0.80
not_equalMethod · 0.80
addMethod · 0.45
divideMethod · 0.45

Tested by

no test coverage detected