| 102 | }; |
| 103 | |
| 104 | TEST_F(ShapeInferenceTest, UnaryNegateMatrix) { |
| 105 | Shape matrix_shape = ShapeUtil::MakeShape(F32, {128, 64}); |
| 106 | auto inferred_status = |
| 107 | ShapeInference::InferUnaryOpShape(HloOpcode::kNegate, matrix_shape); |
| 108 | ASSERT_IS_OK(inferred_status.status()); |
| 109 | ASSERT_TRUE(ShapeUtil::Equal(matrix_shape, inferred_status.ValueOrDie())); |
| 110 | } |
| 111 | |
| 112 | TEST_F(ShapeInferenceTest, SelectScalarPredBetweenTuples) { |
| 113 | Shape tuple = ShapeUtil::MakeTupleShape({s32_, f32_}); |
nothing calls this directly
no test coverage detected