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

Method floor_divide

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

Source from the content-addressed store, hash-verified

399
400 @T.prim_func(private=True, s_tir=True)
401 def floor_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_floor_divide: T.Buffer((T.int64(4), T.int64(3), T.int64(2), T.int64(3)), "float32")):
402 T.func_attr({"tirx.noalias": True})
403 for i0, i1, i2, i3 in T.grid(T.int64(4), T.int64(3), T.int64(2), T.int64(3)):
404 with T.sblock("T_floor_divide"):
405 ax0, ax1, ax2, ax3 = T.axis.remap("SSSS", [i0, i1, i2, i3])
406 T.reads(rxplaceholder[T.int64(0), ax2, ax3], rxplaceholder_1[ax0, ax1, ax2, T.int64(0)])
407 T.writes(T_floor_divide[ax0, ax1, ax2, ax3])
408 T_floor_divide[ax0, ax1, ax2, ax3] = T.floor(rxplaceholder[T.int64(0), ax2, ax3] / rxplaceholder_1[ax0, ax1, ax2, T.int64(0)])
409 # fmt: on
410
411 mod = LegalizeOps()(FloorDivide)

Callers 11

autopadFunction · 0.80
_divMethod · 0.80
floor_divideFunction · 0.80
slice_scatterFunction · 0.80
floor_divideFunction · 0.80
mainMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80
test_op_correctnessFunction · 0.80
mainMethod · 0.80
test_arith_operatorsFunction · 0.80

Calls 1

remapMethod · 0.80

Tested by

no test coverage detected