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

Function TEST

tensorflow/lite/kernels/comparisons_test.cc:95–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93};
94
95TEST(ComparisonsTest, EqualBool) {
96 ComparisonOpModel model({1, 1, 1, 4}, {1, 1, 1, 4}, TensorType_BOOL,
97 BuiltinOperator_EQUAL);
98 model.PopulateTensor<bool>(model.input1(), {true, false, true, false});
99 model.PopulateTensor<bool>(model.input2(), {true, true, false, false});
100 model.Invoke();
101
102 EXPECT_THAT(model.GetOutput(), ElementsAre(true, false, false, true));
103 EXPECT_THAT(model.GetOutputShape(), ElementsAre(1, 1, 1, 4));
104}
105
106TEST(ComparisonsTest, EqualFloat) {
107 ComparisonOpModel model({1, 1, 1, 4}, {1, 1, 1, 4}, TensorType_FLOAT32,

Callers

nothing calls this directly

Calls 6

input1Method · 0.45
input2Method · 0.45
InvokeMethod · 0.45
GetOutputMethod · 0.45
GetOutputShapeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected