Skip to content

Commit f80bc3f

Browse files
committed
remove unused header and use auto for initializer type
Change-Id: I10311b718c3abd0ed75dd88b5ec9de6e0742f047
1 parent 3536c4e commit f80bc3f

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

src/relay/op/contrib/ethosu/binary_elementwise.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,12 @@ bool EthosuBinaryElementwiseRel(const Array<Type>& types, int num_inputs, const
152152
CheckDataTypeMatch(reporter, ifm_dtype, ifm2_dtype, operator_name, "ifm", "ifm2", operator_type);
153153

154154
if (operator_type == "ADD" || operator_type == "SUB" || operator_type == "MUL") {
155-
std::initializer_list<DataType> allowed_types = {DataType::Int(8), DataType::UInt(8),
156-
DataType::Int(16), DataType::Int(32)};
155+
auto allowed_types = {DataType::Int(8), DataType::UInt(8), DataType::Int(16),
156+
DataType::Int(32)};
157157
CheckDataType(reporter, ifm_dtype, allowed_types, operator_name, "ifm", operator_type);
158158
CheckDataType(reporter, ofm_dtype, allowed_types, operator_name, "ofm", operator_type);
159159
} else if (operator_type == "MIN" || operator_type == "MAX") {
160-
std::initializer_list<DataType> allowed_types = {DataType::Int(8), DataType::UInt(8)};
160+
auto allowed_types = {DataType::Int(8), DataType::UInt(8)};
161161
CheckDataType(reporter, ifm_dtype, allowed_types, operator_name, "ifm", operator_type);
162162
CheckDataTypeMatch(reporter, ifm_dtype, ofm_dtype, operator_name, "ifm", "ofm", operator_type);
163163
} else if (operator_type == "SHR") {

src/relay/op/contrib/ethosu/common.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#include "common.h"
2626

2727
#include <sstream>
28-
#include <unordered_set>
2928

3029
#include "../../op_common.h"
3130

src/relay/op/contrib/ethosu/common.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727

2828
#include <tvm/relay/expr.h>
2929

30-
#include <unordered_set>
31-
3230
namespace tvm {
3331
namespace relay {
3432
namespace op {

src/relay/op/contrib/ethosu/depthwise.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,7 @@ bool EthosuDepthwiseConv2DRel(const Array<Type>& types, int num_inputs, const At
144144
CheckDataType(reporter, scale_bias->dtype, {DataType::UInt(8)}, operator_name, "scale bias");
145145

146146
DataType ofm_dtype = DataTypeFromString(param->ofm_dtype);
147-
std::initializer_list<DataType> ofm_dtypes = {DataType::UInt(8), DataType::Int(8),
148-
DataType::Int(16), DataType::Int(32)};
147+
auto ofm_dtypes = {DataType::UInt(8), DataType::Int(8), DataType::Int(16), DataType::Int(32)};
149148
CheckDataType(reporter, ofm_dtype, ofm_dtypes, operator_name, "ofm");
150149

151150
// Collect the ifm, weight and ofm tensors for using in the inference function

0 commit comments

Comments
 (0)