| 68 | }; |
| 69 | |
| 70 | TEST_F(XlaBuilderTest, OnePlusTwo) { |
| 71 | XlaBuilder b(TestName()); |
| 72 | Add(ConstantR0<float>(&b, 1.0), ConstantR0<float>(&b, 2.0)); |
| 73 | TF_ASSERT_OK_AND_ASSIGN(auto module, BuildHloModule(&b)); |
| 74 | auto root = module->entry_computation()->root_instruction(); |
| 75 | EXPECT_THAT(root, op::Add(op::Constant(), op::Constant())); |
| 76 | } |
| 77 | |
| 78 | TEST_F(XlaBuilderTest, UnaryOperatorsBuildExpectedHLO) { |
| 79 | auto test_unary_operator = |
nothing calls this directly
no test coverage detected