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

Function ExportInputTensors

tensorflow/lite/toco/tflite/export.cc:272–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270}
271
272Offset<Vector<int32_t>> ExportInputTensors(
273 const Model& model, const details::TensorsMap& tensors_map,
274 FlatBufferBuilder* builder) {
275 std::vector<int32_t> inputs;
276 for (const auto& input : model.flags.input_arrays()) {
277 inputs.push_back(tensors_map.at(input.name()));
278 }
279 return builder->CreateVector<int32_t>(inputs);
280}
281
282Offset<Vector<int32_t>> ExportOutputTensors(
283 const Model& model, const details::TensorsMap& tensors_map,

Callers 1

ExportFunction · 0.85

Calls 3

nameMethod · 0.65
push_backMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected