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

Function TEST_P

tensorflow/lite/kernels/activations_test.cc:437–449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

435}
436
437TEST_P(TanhOpTest, Tanh) {
438 FloatActivationsOpModel m(GetRegistration(), BuiltinOperator_TANH,
439 /*input=*/{TensorType_FLOAT32, {1, 2, 4, 1}});
440 m.SetInput({
441 0, -6, 2, 4, //
442 3, -2, 10, 1, //
443 });
444 m.Invoke();
445 EXPECT_THAT(m.GetOutput(), ElementsAreArray(ArrayFloatNear({
446 0, -0.9999877, 0.9640275, 0.999329, //
447 0.99505475, -0.9640275, 1, 0.7615941, //
448 })));
449}
450
451TEST(QuantizedActivationsOpTest, Relu6Uint8) {
452 const float kMin = -1;

Callers

nothing calls this directly

Calls 5

GetParamFunction · 0.85
ArrayFloatNearFunction · 0.70
SetInputMethod · 0.45
InvokeMethod · 0.45
GetOutputMethod · 0.45

Tested by

no test coverage detected