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
Beya2019 and honghua.cao authored Jun 9, 2021
1 parent 9899f1e commit 55459e7
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 55459e7

Please sign in to comment.