Return a copy with collapsed dimensions starting from a given point. * * @param[in] start Starting point of collapsing dimensions. * * @return A copy with collapse dimensions starting from start. */
| 164 | * @return A copy with collapse dimensions starting from start. |
| 165 | */ |
| 166 | TensorShape collapsed_from(size_t start) const |
| 167 | { |
| 168 | TensorShape copy(*this); |
| 169 | copy.collapse(num_dimensions() - start, start); |
| 170 | return copy; |
| 171 | } |
| 172 | |
| 173 | /** Collapses all dimensions to a single linear total size. |
| 174 | * |
no test coverage detected