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

Method atan2

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

Source from the content-addressed store, hash-verified

804 class Expected:
805 @T.prim_func(private=True, s_tir=True)
806 def atan2(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_atan2: T.Buffer((T.int64(4), T.int64(3), T.int64(2), T.int64(3)), "float32")):
807 T.func_attr({"tirx.noalias": True})
808 # with T.sblock("root"):
809 for ax0, ax1, ax2, ax3 in T.grid(T.int64(4), T.int64(3), T.int64(2), T.int64(3)):
810 with T.sblock("T_atan2"):
811 v_ax0, v_ax1, v_ax2, v_ax3 = T.axis.remap("SSSS", [ax0, ax1, ax2, ax3])
812 T.reads(rxplaceholder[T.int64(0), v_ax2, v_ax3], rxplaceholder_1[v_ax0, v_ax1, v_ax2, T.int64(0)])
813 T.writes(T_atan2[v_ax0, v_ax1, v_ax2, v_ax3])
814 T_atan2[v_ax0, v_ax1, v_ax2, v_ax3] = T.atan2(rxplaceholder[T.int64(0), v_ax2, v_ax3], rxplaceholder_1[v_ax0, v_ax1, v_ax2, T.int64(0)])
815
816 @R.function
817 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 5

atan2Function · 0.80
atan2Function · 0.80
mainMethod · 0.80
mainMethod · 0.80
test_op_correctnessFunction · 0.80

Calls 1

remapMethod · 0.80

Tested by

no test coverage detected