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

Function TEST_F

tensorflow/lite/toco/tflite/export_test.cc:199–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197};
198
199TEST_F(ExportTest, LoadTensorsMap) {
200 AddTensorsByName({"tensor_one", "tensor_two"});
201
202 details::TensorsMap tensors;
203 details::LoadTensorsMap(input_model_, &tensors);
204 EXPECT_EQ(0, tensors["tensor_one"]);
205 EXPECT_EQ(1, tensors["tensor_two"]);
206}
207
208TEST_F(ExportTest, LoadOperatorsMap) {
209 AddOperatorsByName({"Conv", "Add", "MyCrazyOp", "Sub"});

Callers

nothing calls this directly

Calls 15

LoadTensorsMapFunction · 0.85
BuildOperatorByTypeMapFunction · 0.85
LoadOperatorsMapFunction · 0.85
OperatorKeyClass · 0.85
GetModelFunction · 0.85
metadataMethod · 0.80
ExportFunction · 0.70
nameMethod · 0.65
HasSubstrFunction · 0.50
codeMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected