summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMichael Welter <michael@welter-4d.de>2023-04-23 20:47:52 +0200
committerMichael Welter <michael@welter-4d.de>2023-09-30 09:28:08 +0200
commitba864d294239f6093e2442cc8a36df5c196022f6 (patch)
treed53147555b159bae386fa7965a705d57504c2a5f
parentff23f84bceb9b286846cb40ac4df6f640e38426b (diff)
tracker/nn: Fix compile error with old onnx version
-rw-r--r--tracker-neuralnet/model_adapters.h2
1 files changed, 1 insertions, 1 deletions
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<Ort::Value> input_val_; // Tensors to put into the model