From 780188f3dedf11b1b6c6805b529d1432655f44a5 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()) {