tvm_tirx.tirx.script.assume_aligned

Contents

tvm_tirx.tirx.script.assume_aligned#

tvm_tirx.tirx.script.assume_aligned(tensor, alignment_bytes, *, ty=None, loc=UNKNOWN_LOC)#

Assume the tensor’s base address is aligned to alignment_bytes.

This compiler fact does not check or modify the address. The tensor must be a tensor variable and alignment a scalar integer constant, a power of two between 1 and 2**27 bytes (inclusive).

Parameters:

loc (Location)