This document is relevant for: Trn2, Trn3
nki.compiler.AddressRotation#
- class nki.compiler.AddressRotation(value)[source]#
Which tensors the compiler can move to a different SBUF address or PSUM bank after allocation (see
CompileConfig.address_rotation).AUTO(default): the compiler can move the tensors that the current allocation places. A tensor whose address is fixed keeps it: a tensor allocated withnl.ndarray(..., address=...), and, in the new flow, every tensor that the new allocation places.ENABLE: the compiler can move every tensor, also a tensor whose address is fixed.DISABLE: the compiler moves no tensor.
Attributes
AUTOENABLEDISABLE
This document is relevant for: Trn2, Trn3