| 667 | } |
| 668 | |
| 669 | bool IsNonEmpty(const Shape& shape) { |
| 670 | for (int i = 0; i < shape.dimensions_count(); ++i) { |
| 671 | if (shape.dims(i) < 1) return false; |
| 672 | } |
| 673 | return true; |
| 674 | } |
| 675 | |
| 676 | void CheckNonEmptyShapeDimensions(const Shape& shape) { |
| 677 | for (int i = 0; i < shape.dimensions_count(); ++i) { |
no test coverage detected