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

Method divide

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

Source from the content-addressed store, hash-verified

222
223 @T.prim_func(private=True, s_tir=True)
224 def divide(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_divide: T.Buffer((T.int64(4), T.int64(3), T.int64(2), T.int64(3)), "float32")):
225 T.func_attr({"tirx.noalias": True})
226 for i0, i1, i2, i3 in T.grid(T.int64(4), T.int64(3), T.int64(2), T.int64(3)):
227 with T.sblock("T_divide"):
228 ax0, ax1, ax2, ax3 = T.axis.remap("SSSS", [i0, i1, i2, i3])
229 T.reads(rxplaceholder[T.int64(0), ax2, ax3], rxplaceholder_1[ax0, ax1, ax2, T.int64(0)])
230 T.writes(T_divide[ax0, ax1, ax2, ax3])
231 T_divide[ax0, ax1, ax2, ax3] = rxplaceholder[T.int64(0), ax2, ax3] / rxplaceholder_1[ax0, ax1, ax2, T.int64(0)]
232 # fmt: on
233
234 mod = LegalizeOps()(Divide)

Callers 15

_reciprocalMethod · 0.45
_log2Method · 0.45
_log10Method · 0.45
_celuMethod · 0.45
_hardsigmoidMethod · 0.45
_hardswishMethod · 0.45
_roundMethod · 0.45
_softsignMethod · 0.45
_divMethod · 0.45
_linalg_vector_normMethod · 0.45
_normMethod · 0.45
_log2Method · 0.45

Calls 1

remapMethod · 0.80

Tested by

no test coverage detected