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

Function TEST_F

tensorflow/lite/toco/import_tensorflow_test.cc:287–298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

285};
286
287TEST_F(ContentImportTest, Int32) {
288 constexpr ArrayDataType kType = ArrayDataType::kInt32;
289
290 NodeDef node;
291 BuildConstNode({1, 2, 3}, DT_INT32, 6, &node);
292
293 EXPECT_THAT(ImportAndGetData<kType>(node), ElementsAre(1, 2, 3, 4, 5, 6));
294 RemoveTrailingElements(&node, 1);
295 EXPECT_THAT(ImportAndGetData<kType>(node), ElementsAre(1, 2, 3, 4, 5, 5));
296 RemoveTrailingElements(&node, 4);
297 EXPECT_THAT(ImportAndGetData<kType>(node), ElementsAre(1, 1, 1, 1, 1, 1));
298}
299
300TEST_F(ContentImportTest, Int64) {
301 constexpr ArrayDataType kType = ArrayDataType::kInt64;

Callers

nothing calls this directly

Calls 1

BuildConstNodeFunction · 0.85

Tested by

no test coverage detected