File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
examples/hello_world/main Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ limitations under the License.
1414==============================================================================*/
1515
1616
17- #include " tensorflow/lite/micro/all_ops_resolver .h"
17+ #include " tensorflow/lite/micro/micro_mutable_op_resolver .h"
1818#include " tensorflow/lite/micro/micro_interpreter.h"
1919#include " tensorflow/lite/micro/system_setup.h"
2020#include " tensorflow/lite/schema/schema_generated.h"
@@ -47,9 +47,11 @@ void setup() {
4747 return ;
4848 }
4949
50- // This pulls in all the operation implementations we need.
51- // NOLINTNEXTLINE(runtime-global-variables)
52- static tflite::AllOpsResolver resolver;
50+ // Pull in only the operation implementations we need.
51+ static tflite::MicroMutableOpResolver<1 > resolver;
52+ if (resolver.AddFullyConnected () != kTfLiteOk ) {
53+ return ;
54+ }
5355
5456 // Build an interpreter to run the model with.
5557 static tflite::MicroInterpreter static_interpreter (
You can’t perform that action at this time.
0 commit comments