tilelang.language.logical¶

The language interface for tl programs.

Functions¶

any_of(buffer)

Check if any element in the buffer is true.

all_of(buffer)

Check if all elements in the buffer are true.

Module Contents¶

tilelang.language.logical.any_of(buffer)¶

Check if any element in the buffer is true.

Parameters:

buffer (Union[tilelang.language.Tensor, tvm.tir.BufferRegion]) – Either a TVM buffer or buffer region to be checked

Returns:

A TVM intrinsic call that performs the any operation

tilelang.language.logical.all_of(buffer)¶

Check if all elements in the buffer are true.

Parameters:

buffer (Union[tilelang.language.Tensor, tvm.tir.BufferRegion]) – Either a TVM buffer or buffer region to be checked

Returns:

A TVM intrinsic call that performs the any operation