MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / TEST_F

Function TEST_F

tensorflow/compiler/xla/service/shape_inference_test.cc:104–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102};
103
104TEST_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
112TEST_F(ShapeInferenceTest, SelectScalarPredBetweenTuples) {
113 Shape tuple = ShapeUtil::MakeTupleShape({s32_, f32_});

Callers

nothing calls this directly

Calls 12

MakeShapeFunction · 0.85
FailFunction · 0.85
PassFunction · 0.85
CompatibleClass · 0.85
add_dimensionsMethod · 0.80
TF_ASSERT_OK_AND_ASSIGNFunction · 0.70
EqualClass · 0.50
HasSubstrFunction · 0.50
statusMethod · 0.45
okMethod · 0.45
set_sizeMethod · 0.45
codeMethod · 0.45

Tested by

no test coverage detected