| 193 | } |
| 194 | |
| 195 | std::vector<unsigned int> SqueezeDims(const TensorShape& tensorShape) |
| 196 | { |
| 197 | std::vector<unsigned int> squeezedDims; |
| 198 | |
| 199 | for (unsigned int i = 0; i < tensorShape.GetNumDimensions(); ++i) |
| 200 | { |
| 201 | if (tensorShape[i] != 1) |
| 202 | { |
| 203 | squeezedDims.push_back(tensorShape[i]); |
| 204 | } |
| 205 | } |
| 206 | return squeezedDims; |
| 207 | } |
| 208 | |
| 209 | unsigned int GetNumElementsBetween(const TensorShape& shape, |
| 210 | const unsigned int firstAxisInclusive, |
no test coverage detected