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

Method equal

tests/python/relax/test_transform_legalize_ops.py:240–251  ·  view source on GitHub ↗
(
            rxplaceholder: T.Buffer((T.int64(3), T.int64(3)), "bool"),
            T_equal: T.Buffer((T.int64(3), T.int64(3)), "bool"),
        )

Source from the content-addressed store, hash-verified

238 class Expected2:
239 @T.prim_func(private=True, s_tir=True)
240 def equal(
241 rxplaceholder: T.Buffer((T.int64(3), T.int64(3)), "bool"),
242 T_equal: T.Buffer((T.int64(3), T.int64(3)), "bool"),
243 ):
244 T.func_attr({"tirx.noalias": True})
245 # with T.sblock("root"):
246 for ax0, ax1 in T.grid(T.int64(3), T.int64(3)):
247 with T.sblock("T_equal"):
248 v_ax0, v_ax1 = T.axis.remap("SS", [ax0, ax1])
249 T.reads(rxplaceholder[v_ax0, v_ax1])
250 T.writes(T_equal[v_ax0, v_ax1])
251 T_equal[v_ax0, v_ax1] = rxplaceholder[v_ax0, v_ax1] == tvm.tirx.const(True, "bool")
252
253 @R.function
254 def main(x: R.Tensor((3, 3), dtype="bool")) -> R.Tensor((3, 3), dtype="bool"):

Callers 15

mainMethod · 0.45
test_op_correctnessFunction · 0.45
mainMethod · 0.45
mainMethod · 0.45
mainMethod · 0.45
mainMethod · 0.45
mainMethod · 0.45
testMethod · 0.45
testFunction · 0.45
comparison_opsMethod · 0.45
mainMethod · 0.45

Calls 1

remapMethod · 0.80

Tested by

no test coverage detected