Shifts right the tensor shape increasing its dimensions * * @param[in] step Rotation step */
| 147 | * @param[in] step Rotation step |
| 148 | */ |
| 149 | void shift_right(size_t step) |
| 150 | { |
| 151 | ARM_COMPUTE_ERROR_ON(step > TensorShape::num_max_dimensions - num_dimensions()); |
| 152 | |
| 153 | std::rotate(begin(), begin() + TensorShape::num_max_dimensions - step, end()); |
| 154 | _num_dimensions += step; |
| 155 | |
| 156 | // Correct number dimensions to ignore trailing dimensions of size 1 |
| 157 | apply_dimension_correction(); |
| 158 | } |
| 159 | |
| 160 | /** Return a copy with collapsed dimensions starting from a given point. |
| 161 | * |
no test coverage detected