micro_ops.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /* Copyright 2019 The TensorFlow Authors. All Rights Reserved.
  2. Licensed under the Apache License, Version 2.0 (the "License");
  3. you may not use this file except in compliance with the License.
  4. You may obtain a copy of the License at
  5. http://www.apache.org/licenses/LICENSE-2.0
  6. Unless required by applicable law or agreed to in writing, software
  7. distributed under the License is distributed on an "AS IS" BASIS,
  8. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  9. See the License for the specific language governing permissions and
  10. limitations under the License.
  11. ==============================================================================*/
  12. #ifndef TENSORFLOW_LITE_MICRO_KERNELS_MICRO_OPS_H_
  13. #define TENSORFLOW_LITE_MICRO_KERNELS_MICRO_OPS_H_
  14. #include "tensorflow/lite/c/common.h"
  15. namespace tflite {
  16. namespace ops {
  17. namespace micro {
  18. // Forward declaration of all micro op kernel registration methods. These
  19. // registrations are included with the standard `BuiltinOpResolver`.
  20. //
  21. // This header is particularly useful in cases where only a subset of ops are
  22. // needed. In such cases, the client can selectively add only the registrations
  23. // their model requires, using a custom `(Micro)MutableOpResolver`. Selective
  24. // registration in turn allows the linker to strip unused kernels.
  25. TfLiteRegistration* Register_ABS();
  26. TfLiteRegistration* Register_ADD();
  27. TfLiteRegistration* Register_ARG_MAX();
  28. TfLiteRegistration* Register_ARG_MIN();
  29. TfLiteRegistration* Register_AVERAGE_POOL_2D();
  30. TfLiteRegistration* Register_CEIL();
  31. TfLiteRegistration* Register_CIRCULAR_BUFFER();
  32. TfLiteRegistration* Register_CONV_2D();
  33. TfLiteRegistration* Register_CONCATENATION();
  34. TfLiteRegistration* Register_COS();
  35. TfLiteRegistration* Register_DEPTHWISE_CONV_2D();
  36. TfLiteRegistration* Register_DEQUANTIZE();
  37. TfLiteRegistration* Register_EQUAL();
  38. TfLiteRegistration* Register_FLOOR();
  39. TfLiteRegistration* Register_FULLY_CONNECTED();
  40. TfLiteRegistration* Register_GREATER();
  41. TfLiteRegistration* Register_GREATER_EQUAL();
  42. TfLiteRegistration* Register_LESS();
  43. TfLiteRegistration* Register_LESS_EQUAL();
  44. TfLiteRegistration* Register_LOG();
  45. TfLiteRegistration* Register_LOGICAL_AND();
  46. TfLiteRegistration* Register_LOGICAL_NOT();
  47. TfLiteRegistration* Register_LOGICAL_OR();
  48. TfLiteRegistration* Register_LOGISTIC();
  49. TfLiteRegistration* Register_MAXIMUM();
  50. TfLiteRegistration* Register_MAX_POOL_2D();
  51. TfLiteRegistration* Register_MEAN();
  52. TfLiteRegistration* Register_MINIMUM();
  53. TfLiteRegistration* Register_MUL();
  54. TfLiteRegistration* Register_NEG();
  55. TfLiteRegistration* Register_NOT_EQUAL();
  56. TfLiteRegistration* Register_PACK();
  57. TfLiteRegistration* Register_PAD();
  58. TfLiteRegistration* Register_PADV2();
  59. TfLiteRegistration* Register_PRELU();
  60. TfLiteRegistration* Register_QUANTIZE();
  61. TfLiteRegistration* Register_RELU();
  62. TfLiteRegistration* Register_RELU6();
  63. TfLiteRegistration* Register_RESHAPE();
  64. TfLiteRegistration* Register_RESIZE_NEAREST_NEIGHBOR();
  65. TfLiteRegistration* Register_ROUND();
  66. TfLiteRegistration* Register_RSQRT();
  67. TfLiteRegistration* Register_SIN();
  68. TfLiteRegistration* Register_SOFTMAX();
  69. TfLiteRegistration* Register_SPLIT();
  70. TfLiteRegistration* Register_SQRT();
  71. TfLiteRegistration* Register_SQUARE();
  72. TfLiteRegistration* Register_STRIDED_SLICE();
  73. TfLiteRegistration* Register_SUB();
  74. TfLiteRegistration* Register_SVDF();
  75. TfLiteRegistration* Register_UNPACK();
  76. TfLiteRegistration* Register_L2_NORMALIZATION();
  77. TfLiteRegistration* Register_TANH();
  78. } // namespace micro
  79. } // namespace ops
  80. } // namespace tflite
  81. #endif // TENSORFLOW_LITE_MICRO_KERNELS_MICRO_OPS_H_