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

Function TEST

tensorflow/lite/kernels/pow_test.cc:53–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51};
52
53TEST(PowOpModel, Simple) {
54 PowOpModel<int32_t> model({TensorType_INT32, {1, 2, 2, 1}},
55 {TensorType_INT32, {1, 2, 2, 1}},
56 {TensorType_INT32, {}});
57 model.PopulateTensor<int32_t>(model.input1(), {12, 2, 7, 8});
58 model.PopulateTensor<int32_t>(model.input2(), {1, 2, 3, 1});
59 model.Invoke();
60 EXPECT_THAT(model.GetOutputShape(), ElementsAre(1, 2, 2, 1));
61 EXPECT_THAT(model.GetOutput(), ElementsAre(12, 4, 343, 8));
62}
63
64TEST(PowOpModel, NegativeAndZeroValue) {
65 PowOpModel<int32_t> model({TensorType_INT32, {1, 2, 2, 1}},

Callers

nothing calls this directly

Calls 9

UniformRandomFloatFunction · 0.85
UniformRandomIntFunction · 0.85
CalculateTrueResultsFunction · 0.85
ArrayFloatNearFunction · 0.70
input1Method · 0.45
input2Method · 0.45
InvokeMethod · 0.45
GetOutputShapeMethod · 0.45
GetOutputMethod · 0.45

Tested by

no test coverage detected