Support FLOAT8_E8M0 scale ND to Nn storage conversion through aclnnNpuFormatCast when dstFormat is FRACTAL_NZ. The Nn storage shape is (..., ceil(N / 16), KScale, 16, 2), while the original logical shape remains (..., KScale, N, 2).
Changes
Add shape calculation and validation for FLOAT8_E8M0 scale ND to Nn.
Add Reshape + Transpose based transdata implementation.
Update aclnnNpuFormatCast API docs.
Add Ascend950 L2 unit cases for valid 3D/4D shapes and invalid N alignment.
Description
Support FLOAT8_E8M0 scale ND to Nn storage conversion through aclnnNpuFormatCast when dstFormat is FRACTAL_NZ. The Nn storage shape is (..., ceil(N / 16), KScale, 16, 2), while the original logical shape remains (..., KScale, N, 2).
Changes
Test
Type