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

Function TEST

tensorflow/lite/kernels/internal/tensor_test.cc:24–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22using ::testing::ElementsAre;
23
24TEST(TensorTest, GetTensorShape4D) {
25 RuntimeShape d = GetTensorShape({2, 3, 4, 5});
26 EXPECT_THAT(
27 std::vector<int32>(d.DimsData(), d.DimsData() + d.DimensionsCount()),
28 ElementsAre(2, 3, 4, 5));
29}
30
31TEST(TensorTest, GetTensorShape3D) {
32 RuntimeShape d = GetTensorShape({3, 4, 5});

Callers

nothing calls this directly

Calls 3

DimsDataMethod · 0.80
DimensionsCountMethod · 0.80
GetTensorShapeFunction · 0.70

Tested by

no test coverage detected