diff --git a/onnx/shape_inference/implementation.h b/onnx/shape_inference/implementation.h index f6cbc0a1215..4ec0a427c83 100644 --- a/onnx/shape_inference/implementation.h +++ b/onnx/shape_inference/implementation.h @@ -273,7 +273,7 @@ struct DataPropagationContextImpl : public DataPropagationContext { const std::unordered_map& valueTypesByName, const std::unordered_map& inputDataByName, std::unordered_map& generatedShapeData) - : generatedShapeData_{generatedShapeData} { + : generatedShapeData_(generatedShapeData) { size_t input_idx = 0; for (auto& attr : *n.mutable_attribute()) {