1 /* Copyright 2019 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_DELEGATES_HEXAGON_BUILDERS_OP_FACTORY_H_ 16 #define TENSORFLOW_LITE_DELEGATES_HEXAGON_BUILDERS_OP_FACTORY_H_ 17 18 #include "tensorflow/lite/c/common.h" 19 20 namespace tflite { 21 namespace delegates { 22 namespace hexagon { 23 class GraphBuilder; 24 class OpBuilder; 25 26 OpBuilder* CreateArgMinMaxOpBuilder(GraphBuilder* graph_builder, int op_type); 27 OpBuilder* CreateActivationBuilder(GraphBuilder* graph_builder, int op_type); 28 OpBuilder* CreateArithmeticBuilder(GraphBuilder* graph_builder, int op_type); 29 OpBuilder* CreateMatMulWithConstWeightsOpBuilder(GraphBuilder* graph_builder, 30 int op_type); 31 OpBuilder* CreateConcatBuilder(GraphBuilder* graph_builder, int op_type); 32 OpBuilder* CreateConv2DBuilder(GraphBuilder* graph_builder, int op_type); 33 OpBuilder* CreateTransposeConv2DBuilder(GraphBuilder* graph_builder, 34 int op_type); 35 OpBuilder* CreatePool2DBuilder(GraphBuilder* graph_builder, int op_type); 36 OpBuilder* CreateReshapeBuilder(GraphBuilder* graph_builder, int op_type); 37 OpBuilder* CreateSoftmaxBuilder(GraphBuilder* graph_builder, int op_type); 38 OpBuilder* CreateReduceBuilder(GraphBuilder* graph_builder, int op_type); 39 OpBuilder* CreateMirrorPadBuilder(GraphBuilder* graph_builder, int op_type); 40 OpBuilder* CreatePadBuilder(GraphBuilder* graph_builder, int op_type); 41 OpBuilder* CreateResizeNearestNeighborBuilder(GraphBuilder* graph_builder, 42 int op_type); 43 OpBuilder* CreateL2NormalizationBuilder(GraphBuilder* graph_builder, 44 int op_type); 45 OpBuilder* CreateSplitBuilder(GraphBuilder* graph_builder, int op_type); 46 OpBuilder* CreateResizeBilinearOpBuilder(GraphBuilder* graph_builder, 47 int op_type); 48 OpBuilder* CreateNegOpBuilder(GraphBuilder* graph_builder, int op_type); 49 OpBuilder* CreateTransposeBuilder(GraphBuilder* graph_builder, int op_type); 50 OpBuilder* CreateSpaceToDepthBuilder(GraphBuilder* graph_builder, int op_type); 51 OpBuilder* CreateBatchSeqBuilder(GraphBuilder* graph_builder, int op_type, 52 int max_size_for_batch, 53 TfLiteIntArray* input_batch_dimensions, 54 TfLiteIntArray* output_batch_dimensions); 55 OpBuilder* CreateQuantizeBuilder(GraphBuilder* graph_builder, int op_type); 56 OpBuilder* CreateHardSwishBuilder(GraphBuilder* graph_builder, int op_type); 57 OpBuilder* CreateCastBuilder(GraphBuilder* graph_builder, int op_type); 58 OpBuilder* CreateMinMaxBuilder(GraphBuilder* graph_builder, int op_type); 59 OpBuilder* CreateSliceOpBuilder(GraphBuilder* graph_builder, int op_type); 60 OpBuilder* CreatePackBuilder(GraphBuilder* graph_builder, int op_type); 61 OpBuilder* CreateMatMulOpBuilder(GraphBuilder* graph_builder, int op_type); 62 OpBuilder* CreateStridedSliceBuilder(GraphBuilder* graph_builder, int op_type); 63 OpBuilder* CreateSquaredDifferenceOpBuilder(GraphBuilder* graph_builder, 64 int op_type); 65 OpBuilder* CreateRSqrtOpBuilder(GraphBuilder* graph_builder, int op_type); 66 67 } // namespace hexagon 68 } // namespace delegates 69 } // namespace tflite 70 71 #endif // TENSORFLOW_LITE_DELEGATES_HEXAGON_BUILDERS_OP_FACTORY_H_ 72