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

Method input

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

Source from the content-addressed store, hash-verified

268}
269
270TfLiteTensor* MicroInterpreter::input(size_t index) {
271 const flatbuffers::Vector<int32_t>* inputs = subgraph_->inputs();
272 const size_t length = inputs->size();
273 if ((index < 0) || (index >= length)) {
274 error_reporter_->Report("Input index %d out of range (length is %d)", index,
275 length);
276 return nullptr;
277 }
278 return &(context_.tensors[inputs->Get(index)]);
279}
280
281TfLiteTensor* MicroInterpreter::output(size_t index) {
282 const flatbuffers::Vector<int32_t>* outputs = subgraph_->outputs();

Callers 10

ComputeMethod · 0.45
TF_LITE_MICRO_TESTFunction · 0.45
mainFunction · 0.45
TF_LITE_MICRO_TESTFunction · 0.45
TF_LITE_MICRO_TESTFunction · 0.45
mainFunction · 0.45
TF_LITE_MICRO_TESTFunction · 0.45
mainFunction · 0.45
TF_LITE_MICRO_TESTFunction · 0.45

Calls 4

inputsMethod · 0.45
sizeMethod · 0.45
ReportMethod · 0.45
GetMethod · 0.45

Tested by 5

TF_LITE_MICRO_TESTFunction · 0.36
TF_LITE_MICRO_TESTFunction · 0.36
TF_LITE_MICRO_TESTFunction · 0.36
TF_LITE_MICRO_TESTFunction · 0.36
TF_LITE_MICRO_TESTFunction · 0.36