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

Method output

tensorflow/lite/experimental/micro/micro_interpreter.cc:281–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279}
280
281TfLiteTensor* MicroInterpreter::output(size_t index) {
282 const flatbuffers::Vector<int32_t>* outputs = subgraph_->outputs();
283 const size_t length = outputs->size();
284 if ((index < 0) || (index >= outputs->size())) {
285 error_reporter_->Report("Output index %d out of range (length is %d)",
286 index, length);
287 return nullptr;
288 }
289 return &(context_.tensors[outputs->Get(index)]);
290}
291
292TfLiteTensor* MicroInterpreter::tensor(size_t index) {
293 const size_t length = tensors_size();

Callers

nothing calls this directly

Calls 4

outputsMethod · 0.45
sizeMethod · 0.45
ReportMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected