Closed cpetig closed 4 years ago
(My) TfLiteMicro code typically uses interpreter->input(0) and interpreter->output(0) to access data and compare dimensions. Also the example uses it https://github.com/tensorflow/tensorflow/blob/edbe5e189c1ec14d3a3386aa29e6118d807d9379/tensorflow/lite/micro/examples/hello_world/main_functions.cc#L82 Implement a similar interface for compiled code returning the TfLiteTensor pointer - this way existing code can be more easily adapted to using compiled code.
Fixed in https://github.com/cpetig/tflite_micro_compiler/commit/6513f59504942d38adddfffd40c478ba5b2a161a
(My) TfLiteMicro code typically uses interpreter->input(0) and interpreter->output(0) to access data and compare dimensions. Also the example uses it https://github.com/tensorflow/tensorflow/blob/edbe5e189c1ec14d3a3386aa29e6118d807d9379/tensorflow/lite/micro/examples/hello_world/main_functions.cc#L82 Implement a similar interface for compiled code returning the TfLiteTensor pointer - this way existing code can be more easily adapted to using compiled code.