From f780d71ef57c6307f2de7cb751237c76d8e54ca0 Mon Sep 17 00:00:00 2001 From: Frank Winklmeier <frank.winklmeier@cern.ch> Date: Thu, 28 Nov 2024 17:27:51 +0100 Subject: [PATCH] FPGATrackSimAlgorithms: fix cppcheck defect (return by-value) --- .../FPGATrackSim/FPGATrackSimAlgorithms/src/OnnxRuntimeBase.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Trigger/EFTracking/FPGATrackSim/FPGATrackSimAlgorithms/src/OnnxRuntimeBase.h b/Trigger/EFTracking/FPGATrackSim/FPGATrackSimAlgorithms/src/OnnxRuntimeBase.h index 6576f1143f3e..c08fe591e6f4 100644 --- a/Trigger/EFTracking/FPGATrackSim/FPGATrackSimAlgorithms/src/OnnxRuntimeBase.h +++ b/Trigger/EFTracking/FPGATrackSim/FPGATrackSimAlgorithms/src/OnnxRuntimeBase.h @@ -29,8 +29,8 @@ class OnnxRuntimeBase { std::vector<std::vector<float>> runONNXInference(NetworkBatchInput& inputTensorValues) const; std::map<int, Eigen::MatrixXf> runONNXInferenceMultilayerOutput(NetworkBatchInput& inputTensorValues) const; - std::vector<int64_t> getInputNodesDims(){return m_inputNodeDims;}; - std::vector<int64_t> getOutputNodesDims(){return m_outputNodeDims;}; + const std::vector<int64_t>& getInputNodesDims(){return m_inputNodeDims;}; + const std::vector<int64_t>& getOutputNodesDims(){return m_outputNodeDims;}; private: /// ONNX runtime session / model properties -- GitLab