2323
2424#include < android/NeuralNetworks.h>
2525
26+ #include < memory>
27+ #include < string>
28+ #include < unordered_map>
29+ #include < vector>
30+
2631#include " ../json/json_node.h"
2732#include " nnapi_builder.h"
2833
@@ -36,7 +41,7 @@ struct NNAPIOpConverterParams {
3641 const JSONGraphNode& node;
3742 std::vector<NNAPIOperand> inputs;
3843 std::vector<NNAPIOperand> outputs;
39- NNAPIOpConverterParams (const JSONGraphNode& node);
44+ explicit NNAPIOpConverterParams (const JSONGraphNode& node);
4045};
4146
4247class NNAPIOpConverter {
@@ -46,9 +51,9 @@ class NNAPIOpConverter {
4651 explicit NNAPIOpConverter (std::string op_name);
4752 virtual ~NNAPIOpConverter () = default ;
4853
49- virtual void Convert (NNAPIModelBuilder& builder, const JSONGraphNode& node,
54+ virtual void Convert (NNAPIModelBuilder& builder, const JSONGraphNode& node, // NOLINT(*)
5055 const std::vector<NNAPIOperand>& inputs,
51- std::vector<NNAPIOperand>& outputs) const = 0;
56+ std::vector<NNAPIOperand>& outputs) const = 0; // NOLINT(*)
5257};
5358
5459class ElwBinaryOpConverter : public NNAPIOpConverter {
@@ -73,7 +78,7 @@ class UnaryOpConverter : public NNAPIOpConverter {
7378
7479class SoftmaxOpConverter : public NNAPIOpConverter {
7580 public:
76- inline explicit SoftmaxOpConverter () : NNAPIOpConverter(" softmax" ) {}
81+ inline SoftmaxOpConverter () : NNAPIOpConverter(" softmax" ) {}
7782 ~SoftmaxOpConverter () = default ;
7883
7984 void Convert (NNAPIModelBuilder& builder, const JSONGraphNode& node,
@@ -83,7 +88,7 @@ class SoftmaxOpConverter : public NNAPIOpConverter {
8388
8489class MatmulOpConverter : public NNAPIOpConverter {
8590 public:
86- inline explicit MatmulOpConverter () : NNAPIOpConverter(" " ) {}
91+ inline MatmulOpConverter () : NNAPIOpConverter(" " ) {}
8792 ~MatmulOpConverter () = default ;
8893
8994 void Convert (NNAPIModelBuilder& builder, const JSONGraphNode& node,
@@ -93,7 +98,7 @@ class MatmulOpConverter : public NNAPIOpConverter {
9398
9499class TransposeOpConverter : public NNAPIOpConverter {
95100 public:
96- inline explicit TransposeOpConverter () : NNAPIOpConverter(" " ) {}
101+ inline TransposeOpConverter () : NNAPIOpConverter(" " ) {}
97102 ~TransposeOpConverter () = default ;
98103
99104 void Convert (NNAPIModelBuilder& builder, const JSONGraphNode& node,
@@ -112,7 +117,7 @@ class CastOpConverter : public NNAPIOpConverter {
112117};
113118class Conv2dOpConverter : public NNAPIOpConverter {
114119 public:
115- inline explicit Conv2dOpConverter () : NNAPIOpConverter(" " ) {}
120+ inline Conv2dOpConverter () : NNAPIOpConverter(" " ) {}
116121 ~Conv2dOpConverter () = default ;
117122
118123 void Convert (NNAPIModelBuilder& builder, const JSONGraphNode& node,
@@ -122,7 +127,7 @@ class Conv2dOpConverter : public NNAPIOpConverter {
122127
123128class DenseOpConverter : public NNAPIOpConverter {
124129 public:
125- inline explicit DenseOpConverter () : NNAPIOpConverter(" " ) {}
130+ inline DenseOpConverter () : NNAPIOpConverter(" " ) {}
126131 ~DenseOpConverter () = default ;
127132
128133 void Convert (NNAPIModelBuilder& builder, const JSONGraphNode& node,
@@ -132,7 +137,7 @@ class DenseOpConverter : public NNAPIOpConverter {
132137
133138class MaxPool2dOpConverter : public NNAPIOpConverter {
134139 public:
135- inline explicit MaxPool2dOpConverter () : NNAPIOpConverter(" " ) {}
140+ inline MaxPool2dOpConverter () : NNAPIOpConverter(" " ) {}
136141 ~MaxPool2dOpConverter () = default ;
137142
138143 void Convert (NNAPIModelBuilder& builder, const JSONGraphNode& node,
0 commit comments