From 52e1cf2e64c5b469b55ee77c3e15b487c2098e62 Mon Sep 17 00:00:00 2001 From: YassineYousfi Date: Tue, 23 May 2023 16:11:51 -0700 Subject: [PATCH] fix input order in onnxmodel (#28274) old-commit-hash: d0a8b3780c6ca3db07cbb0a1d644f781efad40f0 --- selfdrive/modeld/runners/onnxmodel.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/selfdrive/modeld/runners/onnxmodel.cc b/selfdrive/modeld/runners/onnxmodel.cc index 5616a6c9c7..a5a83bccdc 100644 --- a/selfdrive/modeld/runners/onnxmodel.cc +++ b/selfdrive/modeld/runners/onnxmodel.cc @@ -138,14 +138,14 @@ void ONNXModel::execute() { if (desire_input_buf != NULL) { pwrite(desire_input_buf, desire_state_size); } - if (nav_features_input_buf != NULL) { - pwrite(nav_features_input_buf, nav_features_size); + if (traffic_convention_input_buf != NULL) { + pwrite(traffic_convention_input_buf, traffic_convention_size); } if (driving_style_input_buf != NULL) { pwrite(driving_style_input_buf, driving_style_size); } - if (traffic_convention_input_buf != NULL) { - pwrite(traffic_convention_input_buf, traffic_convention_size); + if (nav_features_input_buf != NULL) { + pwrite(nav_features_input_buf, nav_features_size); } if (calib_input_buf != NULL) { pwrite(calib_input_buf, calib_size);