1 /* Copyright 2018 The TensorFlow Authors. All Rights Reserved. 2 3 Licensed under the Apache License, Version 2.0 (the "License"); 4 you may not use this file except in compliance with the License. 5 You may obtain a copy of the License at 6 7 http://www.apache.org/licenses/LICENSE-2.0 8 9 Unless required by applicable law or agreed to in writing, software 10 distributed under the License is distributed on an "AS IS" BASIS, 11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 See the License for the specific language governing permissions and 13 limitations under the License. 14 ==============================================================================*/ 15 #ifndef TENSORFLOW_LITE_MICRO_ALL_OPS_RESOLVER_H_ 16 #define TENSORFLOW_LITE_MICRO_ALL_OPS_RESOLVER_H_ 17 18 #include "tensorflow/lite/micro/compatibility.h" 19 #include "tensorflow/lite/micro/micro_mutable_op_resolver.h" 20 21 namespace tflite { 22 23 // The magic number in the template parameter is the maximum number of ops that 24 // can be added to AllOpsResolver. It can be increased if needed. And most 25 // applications that care about the memory footprint will want to directly use 26 // MicroMutableOpResolver and have an application specific template parameter. 27 // The examples directory has sample code for this. 28 class AllOpsResolver : public MicroMutableOpResolver<128> { 29 public: 30 AllOpsResolver(); 31 32 private: 33 TF_LITE_REMOVE_VIRTUAL_DELETE 34 }; 35 36 } // namespace tflite 37 38 #endif // TENSORFLOW_LITE_MICRO_ALL_OPS_RESOLVER_H_ 39