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

Method power

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

Source from the content-addressed store, hash-verified

686 class Expected:
687 @T.prim_func(private=True, s_tir=True)
688 def power(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_power: T.Buffer((T.int64(4), T.int64(3), T.int64(2), T.int64(3)), "float32")):
689 T.func_attr({"tirx.noalias": True})
690 # with T.sblock("root"):
691 for ax0, ax1, ax2, ax3 in T.grid(T.int64(4), T.int64(3), T.int64(2), T.int64(3)):
692 with T.sblock("T_power"):
693 v_ax0, v_ax1, v_ax2, v_ax3 = T.axis.remap("SSSS", [ax0, ax1, ax2, ax3])
694 T.reads(rxplaceholder[T.int64(0), v_ax2, v_ax3], rxplaceholder_1[v_ax0, v_ax1, v_ax2, T.int64(0)])
695 T.writes(T_power[v_ax0, v_ax1, v_ax2, v_ax3])
696 T_power[v_ax0, v_ax1, v_ax2, v_ax3] = T.pow(rxplaceholder[T.int64(0), v_ax2, v_ax3], rxplaceholder_1[v_ax0, v_ax1, v_ax2, T.int64(0)])
697
698 @R.function
699 def main(x: R.Tensor((1, 2, 3), dtype="float32"), y: R.Tensor((4, 3, 2, 1), dtype="float32")) -> R.Tensor((4, 3, 2, 3), dtype="float32"):

Callers 15

_linalg_vector_normMethod · 0.80
_normMethod · 0.80
rope_freq_defaultFunction · 0.80
rope_freq_gptjFunction · 0.80
rope_freq_llama4Function · 0.80
rope_freq_llama3Function · 0.80
rope_freq_longropeFunction · 0.80
rope_freq_yarnFunction · 0.80
_impl_v9Method · 0.80
_impl_v13Method · 0.80
_impl_v1Method · 0.80
_impl_v2Method · 0.80

Calls 1

remapMethod · 0.80

Tested by

no test coverage detected