diff --git a/src/relay/op/contrib/ethosu/binary_elementwise.cc b/src/relay/op/contrib/ethosu/binary_elementwise.cc index 258c84c70660..9a681b7cdc88 100644 --- a/src/relay/op/contrib/ethosu/binary_elementwise.cc +++ b/src/relay/op/contrib/ethosu/binary_elementwise.cc @@ -152,12 +152,12 @@ bool EthosuBinaryElementwiseRel(const Array& types, int num_inputs, const CheckDataTypeMatch(reporter, ifm_dtype, ifm2_dtype, operator_name, "ifm", "ifm2", operator_type); if (operator_type == "ADD" || operator_type == "SUB" || operator_type == "MUL") { - std::initializer_list allowed_types = {DataType::Int(8), DataType::UInt(8), - DataType::Int(16), DataType::Int(32)}; + auto allowed_types = {DataType::Int(8), DataType::UInt(8), DataType::Int(16), + DataType::Int(32)}; CheckDataType(reporter, ifm_dtype, allowed_types, operator_name, "ifm", operator_type); CheckDataType(reporter, ofm_dtype, allowed_types, operator_name, "ofm", operator_type); } else if (operator_type == "MIN" || operator_type == "MAX") { - std::initializer_list allowed_types = {DataType::Int(8), DataType::UInt(8)}; + auto allowed_types = {DataType::Int(8), DataType::UInt(8)}; CheckDataType(reporter, ifm_dtype, allowed_types, operator_name, "ifm", operator_type); CheckDataTypeMatch(reporter, ifm_dtype, ofm_dtype, operator_name, "ifm", "ofm", operator_type); } else if (operator_type == "SHR") { diff --git a/src/relay/op/contrib/ethosu/common.cc b/src/relay/op/contrib/ethosu/common.cc index a9fcd4301e81..5e957957bc1e 100644 --- a/src/relay/op/contrib/ethosu/common.cc +++ b/src/relay/op/contrib/ethosu/common.cc @@ -25,7 +25,6 @@ #include "common.h" #include -#include #include "../../op_common.h" diff --git a/src/relay/op/contrib/ethosu/common.h b/src/relay/op/contrib/ethosu/common.h index b993b78749ae..a399a2e53aa4 100644 --- a/src/relay/op/contrib/ethosu/common.h +++ b/src/relay/op/contrib/ethosu/common.h @@ -27,8 +27,6 @@ #include -#include - namespace tvm { namespace relay { namespace op { diff --git a/src/relay/op/contrib/ethosu/depthwise.cc b/src/relay/op/contrib/ethosu/depthwise.cc index b631f5b8e6a4..7e9fed5041be 100644 --- a/src/relay/op/contrib/ethosu/depthwise.cc +++ b/src/relay/op/contrib/ethosu/depthwise.cc @@ -144,8 +144,7 @@ bool EthosuDepthwiseConv2DRel(const Array& types, int num_inputs, const At CheckDataType(reporter, scale_bias->dtype, {DataType::UInt(8)}, operator_name, "scale bias"); DataType ofm_dtype = DataTypeFromString(param->ofm_dtype); - std::initializer_list ofm_dtypes = {DataType::UInt(8), DataType::Int(8), - DataType::Int(16), DataType::Int(32)}; + auto ofm_dtypes = {DataType::UInt(8), DataType::Int(8), DataType::Int(16), DataType::Int(32)}; CheckDataType(reporter, ofm_dtype, ofm_dtypes, operator_name, "ofm"); // Collect the ifm, weight and ofm tensors for using in the inference function