From 0e1728f215833ed09ba916f6cd4e80d7dc6aa6bc Mon Sep 17 00:00:00 2001 From: MatthewDaggitt Date: Fri, 24 Jan 2025 14:06:48 +0800 Subject: [PATCH] Try to fix dangling reference flagged by CI --- src/input_parsers/OnnxParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input_parsers/OnnxParser.cpp b/src/input_parsers/OnnxParser.cpp index 73bbd482c..40a25501a 100644 --- a/src/input_parsers/OnnxParser.cpp +++ b/src/input_parsers/OnnxParser.cpp @@ -353,7 +353,7 @@ int getRequiredIntAttribute( onnx::NodeProto &node, String name ) return attr->i(); } -const onnx::TensorProto &getTensorAttribute( onnx::NodeProto &node, String name ) +const onnx::TensorProto getTensorAttribute( onnx::NodeProto &node, String name ) { const onnx::AttributeProto *attr = findAttribute( node, name, onnx::AttributeProto_AttributeType_TENSOR );