Verifies the shape or the shape and the layout of an HLO instruction against the provided shape object.
| 377 | // Verifies the shape or the shape and the layout of an HLO instruction against |
| 378 | // the provided shape object. |
| 379 | inline ::testing::Matcher<const ::xla::HloInstruction*> Shape( |
| 380 | const class Shape& shape) { |
| 381 | return ::testing::MakeMatcher(new ::xla::testing::HloShapeMatcher(shape)); |
| 382 | } |
| 383 | inline ::testing::Matcher<const ::xla::HloInstruction*> Shape( |
| 384 | absl::string_view shape) { |
| 385 | return ::testing::MakeMatcher( |