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

Function TEST_F

tensorflow/lite/delegates/gpu/gl/kernels/relu_test.cc:45–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43};
44
45TEST_F(ReluTest, Smoke) {
46 OperationType op_type = OperationType::RELU;
47 ReLUAttributes attr;
48 attr.clip = 0;
49 attr.alpha = 0;
50 SingleOpModel model({ToString(op_type), attr}, {GetTensorRef(0)},
51 {GetTensorRef(1)});
52 ASSERT_TRUE(model.PopulateTensor(0, {-6.0, 0.0, 2.0, 8.0}));
53 ASSERT_OK(model.Invoke(*NewReLUNodeShader()));
54 EXPECT_THAT(model.GetOutput(0),
55 Pointwise(FloatNear(1e-6), {0.0, 0.0, 2.0, 8.0}));
56}
57
58TEST_F(ReluTest, ClipOnly) {
59 OperationType op_type = OperationType::RELU;

Callers

nothing calls this directly

Calls 6

GetTensorRefFunction · 0.85
NewReLUNodeShaderFunction · 0.85
ToStringFunction · 0.50
PopulateTensorMethod · 0.45
InvokeMethod · 0.45
GetOutputMethod · 0.45

Tested by

no test coverage detected