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

Method subtract

tests/python/relax/test_transform_legalize_ops_binary.py:928–935  ·  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_subtract: T.Buffer((T.int64(4), T.int64(3), T.int64(2), T.int64(3)), "float32"))

Source from the content-addressed store, hash-verified

926
927 @T.prim_func(private=True, s_tir=True)
928 def subtract(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_subtract: T.Buffer((T.int64(4), T.int64(3), T.int64(2), T.int64(3)), "float32")):
929 T.func_attr({"tirx.noalias": True})
930 for i0, i1, i2, i3 in T.grid(T.int64(4), T.int64(3), T.int64(2), T.int64(3)):
931 with T.sblock("T_subtract"):
932 ax0, ax1, ax2, ax3 = T.axis.remap("SSSS", [i0, i1, i2, i3])
933 T.reads(rxplaceholder[T.int64(0), ax2, ax3], rxplaceholder_1[ax0, ax1, ax2, T.int64(0)])
934 T.writes(T_subtract[ax0, ax1, ax2, ax3])
935 T_subtract[ax0, ax1, ax2, ax3] = rxplaceholder[T.int64(0), ax2, ax3] - rxplaceholder_1[ax0, ax1, ax2, T.int64(0)]
936 # fmt: on
937
938 mod = LegalizeOps()(Subtract)

Callers 15

_lerpMethod · 0.80
_masked_scatterMethod · 0.80
_celuMethod · 0.80
_eluMethod · 0.80
_softshrinkMethod · 0.80
_rsubMethod · 0.80
_gru_cell_unrollMethod · 0.80
create_convert_mapMethod · 0.80
subtractFunction · 0.80
__sub__Method · 0.80
__rsub__Method · 0.80

Calls 1

remapMethod · 0.80

Tested by

no test coverage detected