diff --git a/onnxruntime/core/providers/cpu/nn/pool_attributes.h b/onnxruntime/core/providers/cpu/nn/pool_attributes.h index 13796473dc..54f41f09f4 100644 --- a/onnxruntime/core/providers/cpu/nn/pool_attributes.h +++ b/onnxruntime/core/providers/cpu/nn/pool_attributes.h @@ -93,8 +93,8 @@ struct PoolAttributes { TensorShapeVector strides; TensorShapeVector dilations; // Introduced in MaxPool_10 // default_dilations is true if dilations is not set or all dilations are 1 - bool default_dilations; - AutoPadType auto_pad; + bool default_dilations{false}; + AutoPadType auto_pad{AutoPadType::NOTSET}; TensorShapeVector SetOutputSize(const TensorShape& input_shape, int64_t output_channel,