Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion docs/python-api/triton.language.rst
Original file line number Diff line number Diff line change
Expand Up @@ -191,4 +191,3 @@ Iterators
:nosignatures:

static_range
multiple_of
6 changes: 3 additions & 3 deletions python/triton/language/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1536,7 +1536,7 @@ def debug_barrier(_builder=None):
@builtin
def multiple_of(input, values, _builder=None):
"""
Let the compiler knows that the values in :code:`input` are all multiples of :code:`value`.
Let the compiler know that the values in :code:`input` are all multiples of :code:`value`.
"""
if isinstance(values, constexpr):
values = [values]
Expand All @@ -1552,7 +1552,7 @@ def multiple_of(input, values, _builder=None):
@builtin
def max_contiguous(input, values, _builder=None):
"""
Let the compiler knows that the `value` first values in :code:`input` are contiguous.
Let the compiler know that the `value` first values in :code:`input` are contiguous.
"""
if isinstance(values, constexpr):
values = [values]
Expand All @@ -1568,7 +1568,7 @@ def max_contiguous(input, values, _builder=None):
@builtin
def max_constancy(input, values, _builder=None):
"""
Let the compiler knows that the `value` first values in :code:`input` are constant.
Let the compiler know that the `value` first values in :code:`input` are constant.

e.g. if :code:`values` is [4], then each group of 4 values in :code:`input` should all be equal,
for example [0, 0, 0, 0, 1, 1, 1, 1].
Expand Down