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

Method equal

tests/python/relax/test_transform_legalize_ops_binary.py:1046–1053  ·  view source on GitHub ↗
(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_equal: T.Buffer((T.int64(4), T.int64(3), T.int64(2), T.int64(3)), "bool"))

Source from the content-addressed store, hash-verified

1044
1045 @T.prim_func(private=True, s_tir=True)
1046 def equal(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_equal: T.Buffer((T.int64(4), T.int64(3), T.int64(2), T.int64(3)), "bool")):
1047 T.func_attr({"tirx.noalias": True})
1048 for i0, i1, i2, i3 in T.grid(T.int64(4), T.int64(3), T.int64(2), T.int64(3)):
1049 with T.sblock("T_equal"):
1050 ax0, ax1, ax2, ax3 = T.axis.remap("SSSS", [i0, i1, i2, i3])
1051 T.reads(rxplaceholder[T.int64(0), ax2, ax3], rxplaceholder_1[ax0, ax1, ax2, T.int64(0)])
1052 T.writes(T_equal[ax0, ax1, ax2, ax3])
1053 T_equal[ax0, ax1, ax2, ax3] = rxplaceholder[T.int64(0), ax2, ax3] == rxplaceholder_1[ax0, ax1, ax2, T.int64(0)]
1054 # fmt: on
1055
1056 mod = LegalizeOps()(Equal)

Callers 3

mainMethod · 0.45
mainMethod · 0.45
mainMethod · 0.45

Calls 1

remapMethod · 0.80

Tested by

no test coverage detected