Skip to content

Commit

Permalink
[TVMSCRIPT] Add tir.min node in tvm script (apache#8219)
Browse files Browse the repository at this point in the history
Co-authored-by: honghua.cao <[email protected]>
  • Loading branch information
2 people authored and Trevor Morris committed Jun 17, 2021
1 parent 7e4928e commit 542f0d3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python/tvm/script/intrin.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@ def max(a, b, span): # pylint: disable=redefined-builtin
return tvm.tir.Max(a, b, span)


@register
def min(a, b, span): # pylint: disable=redefined-builtin
return tvm.tir.Min(a, b, span)


def get_axis(begin, end, iter_type, span):
ana = tvm.arith.Analyzer()
extent = ana.simplify(end - begin)
Expand Down

0 comments on commit 542f0d3

Please sign in to comment.