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

Function TEST

tensorflow/lite/kernels/pad_test.cc:187–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185
186#ifdef GTEST_HAS_DEATH_TEST
187TEST(PadOpTest, TooManyDimensions) {
188 EXPECT_DEATH(
189 PadOpConstModel({TensorType_FLOAT32, {1, 2, 3, 4, 5, 6, 7, 8, 9}}, {9, 2},
190 {1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9},
191 {TensorType_FLOAT32}),
192 "dims <= 4");
193}
194
195TEST(PadOpTest, UnequalDimensions) {
196 EXPECT_DEATH(PadOpConstModel({TensorType_FLOAT32, {1, 1, 2, 1}}, {3, 2},

Callers

nothing calls this directly

Calls 8

EXPECT_DEATHFunction · 0.85
PadOpConstModelClass · 0.70
fFunction · 0.50
SetInputMethod · 0.45
InvokeMethod · 0.45
GetOutputMethod · 0.45
GetOutputShapeMethod · 0.45
SetPaddingsMethod · 0.45

Tested by

no test coverage detected