From ba864d294239f6093e2442cc8a36df5c196022f6 Mon Sep 17 00:00:00 2001 From: Michael Welter Date: Sun, 23 Apr 2023 20:47:52 +0200 Subject: tracker/nn: Fix compile error with old onnx version --- tracker-neuralnet/model_adapters.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tracker-neuralnet/model_adapters.h') diff --git a/tracker-neuralnet/model_adapters.h b/tracker-neuralnet/model_adapters.h index 820330cf..48f2fa2c 100644 --- a/tracker-neuralnet/model_adapters.h +++ b/tracker-neuralnet/model_adapters.h @@ -73,7 +73,7 @@ class PoseEstimator std::string get_network_output_name(size_t i) const; int64_t model_version_ = 0; // Queried meta data from the ONNX file Ort::Session session_{nullptr}; // ONNX's runtime context for running the model - Ort::Allocator allocator_; // Memory allocator for tensors + mutable Ort::Allocator allocator_; // Memory allocator for tensors // Inputs cv::Mat scaled_frame_{}, input_mat_{}; // Input. One is the original crop, the other is rescaled (?) std::vector input_val_; // Tensors to put into the model -- cgit v1.2.3