@@ -118,9 +118,9 @@ TfLiteStatus EvalIntegerMean(TfLiteContext* context, TfLiteNode* node,
118
118
enum MinMaxEvalType { kEvalMin , kEvalMax };
119
119
120
120
template <typename T>
121
- struct MinMaxReducerParams {
122
- MinMaxReducerParams () = delete ;
123
- MinMaxReducerParams (MinMaxEvalType evalType) : type_(evalType){};
121
+ struct MinMaxReducerCompare {
122
+ MinMaxReducerCompare () = delete ;
123
+ MinMaxReducerCompare (MinMaxEvalType evalType) : type_(evalType) {};
124
124
125
125
constexpr T initialValue () const {
126
126
return (type_ == kEvalMin ) ? std::numeric_limits<T>::max ()
@@ -161,7 +161,7 @@ TfLiteStatus EvalMinMaxHelper(TfLiteContext* context, TfLiteNode* node,
161
161
context->GetScratchBuffer (context, op_data->resolved_axis_idx ));
162
162
switch (input->type ) {
163
163
case kTfLiteFloat32 : {
164
- MinMaxReducerParams <float > reducer (evalType);
164
+ MinMaxReducerCompare <float > reducer (evalType);
165
165
TF_LITE_ENSURE (
166
166
context,
167
167
reference_ops::ReduceGeneric<float >(
@@ -173,7 +173,7 @@ TfLiteStatus EvalMinMaxHelper(TfLiteContext* context, TfLiteNode* node,
173
173
reducer.initialValue (), reducer.compare ()));
174
174
} break ;
175
175
case kTfLiteInt8 : {
176
- MinMaxReducerParams <int8_t > reducer (evalType);
176
+ MinMaxReducerCompare <int8_t > reducer (evalType);
177
177
TF_LITE_ENSURE_EQ (context, static_cast <double >(op_data->input_scale ),
178
178
static_cast <double >(op_data->output_scale ));
179
179
TF_LITE_ENSURE_EQ (context, op_data->input_zp , op_data->output_zp );
0 commit comments