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

Function TEST

tensorflow/lite/kernels/div_test.cc:81–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81TEST(FloatDivOpTest, NoActivation) {
82 FloatDivOpModel m({TensorType_FLOAT32, {1, 2, 2, 1}},
83 {TensorType_FLOAT32, {1, 2, 2, 1}},
84 {TensorType_FLOAT32, {}}, ActivationFunctionType_NONE);
85 m.PopulateTensor<float>(m.input1(), {-0.2, 0.2, -1.2, 0.8});
86 m.PopulateTensor<float>(m.input2(), {0.5, 0.2, -1.5, 0.5});
87 m.Invoke();
88 EXPECT_THAT(m.GetOutput(),
89 ElementsAreArray(ArrayFloatNear({-0.4, 1.0, 0.8, 1.6})));
90}
91
92TEST(FloatDivOpTest, ActivationRELU_N1_TO_1) {
93 FloatDivOpModel m(

Callers

nothing calls this directly

Calls 6

ArrayFloatNearFunction · 0.70
input1Method · 0.45
input2Method · 0.45
InvokeMethod · 0.45
GetOutputMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected