\brief Removes last `n` dimensions from the `TensorShape`. REQUIRES: `0 <= n <= dims()`
| 233 | /// \brief Removes last `n` dimensions from the `TensorShape`. |
| 234 | /// REQUIRES: `0 <= n <= dims()` |
| 235 | void RemoveLastDims(int n) { |
| 236 | CHECK_LE(n, dims()); |
| 237 | RemoveDimRange(dims() - n, dims()); |
| 238 | } |
| 239 | |
| 240 | /// \brief Removes the dimensions in range `[begin:end)` from `TensorShape`. |
| 241 | /// Negative values of `end` are interpreted as `dims() + end + 1` (as in |