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

Function TEST

tensorflow/lite/kernels/shape_test.cc:54–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52};
53
54TEST(ShapeOpTest, OutTypeInt) {
55 ShapeOpModel<int32_t> model({1, 3, 1, 3, 5}, TensorType_FLOAT32,
56 TensorType_INT32);
57 model.Invoke();
58
59 EXPECT_THAT(model.GetOutput(), ElementsAreArray({1, 3, 1, 3, 5}));
60 EXPECT_THAT(model.GetOutputShape(), ElementsAreArray({5}));
61}
62
63TEST(ShapeOpTest, OutTypeInt64) {
64 ShapeOpModel<int64_t> model({1, 3, 1, 3, 5}, TensorType_FLOAT32,

Callers

nothing calls this directly

Calls 4

InvokeMethod · 0.45
GetOutputMethod · 0.45
GetOutputShapeMethod · 0.45
GetOutputSizeMethod · 0.45

Tested by

no test coverage detected