| 34 | |
| 35 | template <class Shape> |
| 36 | static void AppendTo(const TensorShapeBase<Shape>& s, |
| 37 | gtl::InlinedVector<int64, 8>* vals) { |
| 38 | for (auto dim : s) { |
| 39 | vals->push_back(dim.size); |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | void TensorShape::CheckDimsEqual(int NDIMS) const { |
| 44 | CHECK_EQ(NDIMS, dims()) << "Asking for tensor of " << NDIMS << " dimensions" |
no test coverage detected