From f4d510e93fdddd167be7dcd7eff8c99090a6093e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Karzy=C5=84ski?= Date: Fri, 3 Sep 2021 05:33:12 +0200 Subject: [PATCH] Fix compilation error on older compilers (#3683) Signed-off-by: Michal Karzynski Co-authored-by: Chun-Wei Chen Co-authored-by: Ashwini Khade --- onnx/shape_inference/implementation.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) {