| 47 | } |
| 48 | |
| 49 | bool ShapeLayout::MatchesLayoutInShape(const Shape& shape, |
| 50 | bool minor_to_major_only) const { |
| 51 | auto equal = Shape::Equal().IgnoreDynamicDimension(); |
| 52 | if (minor_to_major_only) { |
| 53 | equal.MinorToMajorOnlyInLayout(); |
| 54 | } |
| 55 | return equal(shape, shape_); |
| 56 | } |
| 57 | |
| 58 | const Layout& ShapeLayout::layout() const { |
| 59 | CHECK(LayoutIsSet()); |
no test coverage detected