MCPcopy
hub / github.com/apache/tvm / maximum

Method maximum

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

Source from the content-addressed store, hash-verified

1921
1922 @T.prim_func(private=True, s_tir=True)
1923 def maximum(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_maximum: T.Buffer((T.int64(4), T.int64(3), T.int64(2), T.int64(3)), "float32")):
1924 T.func_attr({"tirx.noalias": True})
1925 for i0, i1, i2, i3 in T.grid(T.int64(4), T.int64(3), T.int64(2), T.int64(3)):
1926 with T.sblock("T_maximum"):
1927 ax0, ax1, ax2, ax3 = T.axis.remap("SSSS", [i0, i1, i2, i3])
1928 T.reads(rxplaceholder[T.int64(0), ax2, ax3], rxplaceholder_1[ax0, ax1, ax2, T.int64(0)])
1929 T.writes(T_maximum[ax0, ax1, ax2, ax3])
1930 T_maximum[ax0, ax1, ax2, ax3] = T.max(rxplaceholder[T.int64(0), ax2, ax3], rxplaceholder_1[ax0, ax1, ax2, T.int64(0)])
1931 # fmt: on
1932
1933 mod = LegalizeOps()(Maximum)

Callers 15

mainMethod · 0.45
mainMethod · 0.45
mainMethod · 0.45
mainMethod · 0.45
fnFunction · 0.45
mainMethod · 0.45
mainMethod · 0.45
testMethod · 0.45
testFunction · 0.45
multi_opsMethod · 0.45
test_multi_operationsMethod · 0.45

Calls 2

remapMethod · 0.80
maxMethod · 0.80

Tested by

no test coverage detected