| 46 | } |
| 47 | |
| 48 | void TensorShape::CheckDimsAtLeast(int NDIMS) const { |
| 49 | CHECK_GE(NDIMS, dims()) << "Asking for tensor of at least " << NDIMS |
| 50 | << " dimensions from a tensor of " << dims() |
| 51 | << " dimensions"; |
| 52 | } |
| 53 | |
| 54 | template <class Shape> |
| 55 | bool TensorShapeBase<Shape>::IsValid(const TensorShapeProto& proto) { |