Optimizing Data Layouts for Ascend AI Processors
// NHWC to NC1HWC0
Tensor.reshape([N, H, W, C1, C0]).transpose([0, 3, 1, 2, 4])
// NCHW to NC1HWC0
Tensor.reshape([N, C1, C0, H, W]).transpose([0, 1, 3, 4, 2])
\### Fractal Data Formats Ascend processors utilize specialized fractal formats for matrix operations: 1. NZ Format (Fractal Z): - Divides matrices into (H1*W1) fractal blocks - Block s ...
Posted on Thu, 15 Oct 2026 16:50:52 +0000 by Wuhtzu