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

Function TEST_P

tensorflow/lite/kernels/slice_test.cc:82–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80class SliceOpTest : public ::testing::TestWithParam<TestType> {};
81
82TEST_P(SliceOpTest, In1D) {
83 SliceOpModel<float, int32_t> m({4}, {1}, {1}, {1}, {2}, TensorType_INT32,
84 TensorType_FLOAT32, GetParam());
85 m.SetInput({1, 2, 3, 4});
86 m.Invoke();
87 EXPECT_THAT(m.GetOutputShape(), ElementsAreArray({2}));
88 EXPECT_THAT(m.GetOutput(), ElementsAreArray({2, 3}));
89}
90
91TEST_P(SliceOpTest, In2D) {
92 SliceOpModel<float, int32_t> m({2, 3}, {2}, {1, 0}, {2}, {1, 2},

Callers

nothing calls this directly

Calls 6

GetParamFunction · 0.85
SetInputMethod · 0.45
InvokeMethod · 0.45
GetOutputShapeMethod · 0.45
GetOutputMethod · 0.45
SetStringInputMethod · 0.45

Tested by

no test coverage detected