| 2473 | } |
| 2474 | |
| 2475 | TEST(HloParserSingleOpTest, SingleOp) { |
| 2476 | const string text = |
| 2477 | "%multiply = f32[2,4]{1,0} multiply(f32[2,4]{1,0} %broadcast, " |
| 2478 | "f32[2,4]{1,0} %x)"; |
| 2479 | TF_ASSERT_OK_AND_ASSIGN(auto module, ParseAndReturnUnverifiedModule(text)); |
| 2480 | const HloComputation* computation = module->entry_computation(); |
| 2481 | ASSERT_NE(computation, nullptr); |
| 2482 | EXPECT_THAT(computation->root_instruction(), |
| 2483 | GmockMatch(m::Multiply(m::Parameter(0), m::Parameter(1)))); |
| 2484 | } |
| 2485 | |
| 2486 | TEST(HloParserSingleOpTest, SingleOpNoShapeProducesError) { |
| 2487 | const string text = "multiply(f32[2,4]{1,0} %broadcast, f32[2,4]{1,0} %x)"; |
nothing calls this directly
no test coverage detected