| 674 | } |
| 675 | |
| 676 | void CheckNonEmptyShapeDimensions(const Shape& shape) { |
| 677 | for (int i = 0; i < shape.dimensions_count(); ++i) { |
| 678 | CHECK_GE(shape.dims()[i], 1) << "shape has dimension 0 at index << " << i |
| 679 | << ". shape = " << ShapeToString(shape); |
| 680 | } |
| 681 | } |
| 682 | |
| 683 | bool ShapesAgreeUpToBroadcasting(const Shape& shape0, const Shape& shape1) { |
| 684 | CheckNonEmptyShapeDimensions(shape0); |
no test coverage detected