Feature Scope
Data Types
src Data Type |
dst Data Type |
|---|---|
f32 |
f32 |
f16 |
f16 |
bf16 |
bf16 |
Data Layout
1D to 5D tensors are supported in the following data layout formats.
Tensor Dimension |
src Data Layout |
dst Data Layout |
|---|---|---|
1D Tensor |
a |
a |
2D Tensor |
ab |
ab |
3D Tensor |
abc |
abc |
4D Tensor |
abcd |
abcd |
5D Tensor |
abcde |
abcde |
Parameter Constraints
The dimension of the dst tensor being reduced must be 1. Examples:
- A 5D src tensor (5×6×7×8×9) paired with a 5D dst tensor (1×1×1×1×1) indicates reduction across all dimensions (dimensions 1 through 5).
- A 5D src tensor (5×6×7×8×9) paired with a 5D dst tensor (5×6×7×8×1) indicates reduction only along the innermost dimension (dimension 5).
Parent topic: Reduction