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

Function TEST

tensorflow/lite/kernels/rank_test.cc:52–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50};
51
52TEST(RankOpTest, InputTypeFloat) {
53 RankOpModel model({1, 3, 1, 3, 5}, TensorType_FLOAT32);
54 model.Invoke();
55
56 EXPECT_THAT(model.GetOutput(), ElementsAreArray({5}));
57 EXPECT_TRUE(model.GetOutputShape().empty());
58}
59
60TEST(RankOpTest, InputTypeInt) {
61 RankOpModel model({1, 3, 1, 3, 5}, TensorType_INT32);

Callers

nothing calls this directly

Calls 4

InvokeMethod · 0.45
GetOutputMethod · 0.45
emptyMethod · 0.45
GetOutputShapeMethod · 0.45

Tested by

no test coverage detected