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

Method main

tests/python/relax/test_transform_legalize_ops_binary.py:1910–1912  ·  view source on GitHub ↗
(x: R.Tensor((1, 2, 3), "float32"), y: R.Tensor((4, 3, 2, 1), "float32"))

Source from the content-addressed store, hash-verified

1908 class Maximum:
1909 @R.function
1910 def main(x: R.Tensor((1, 2, 3), "float32"), y: R.Tensor((4, 3, 2, 1), "float32")) -> R.Tensor((4, 3, 2, 3), "float32"):
1911 gv: R.Tensor((4, 3, 2, 3), "float32") = R.maximum(x, y)
1912 return gv
1913
1914
1915 @tvm.script.ir_module

Callers

nothing calls this directly

Calls 2

TensorMethod · 0.80
maximumMethod · 0.45

Tested by

no test coverage detected