fix input order in onnxmodel (#28274)

pull/214/head
YassineYousfi 2 years ago committed by GitHub
parent 84886e28df
commit d0a8b3780c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      selfdrive/modeld/runners/onnxmodel.cc

@ -138,14 +138,14 @@ void ONNXModel::execute() {
if (desire_input_buf != NULL) { if (desire_input_buf != NULL) {
pwrite(desire_input_buf, desire_state_size); pwrite(desire_input_buf, desire_state_size);
} }
if (nav_features_input_buf != NULL) { if (traffic_convention_input_buf != NULL) {
pwrite(nav_features_input_buf, nav_features_size); pwrite(traffic_convention_input_buf, traffic_convention_size);
} }
if (driving_style_input_buf != NULL) { if (driving_style_input_buf != NULL) {
pwrite(driving_style_input_buf, driving_style_size); pwrite(driving_style_input_buf, driving_style_size);
} }
if (traffic_convention_input_buf != NULL) { if (nav_features_input_buf != NULL) {
pwrite(traffic_convention_input_buf, traffic_convention_size); pwrite(nav_features_input_buf, nav_features_size);
} }
if (calib_input_buf != NULL) { if (calib_input_buf != NULL) {
pwrite(calib_input_buf, calib_size); pwrite(calib_input_buf, calib_size);

Loading…
Cancel
Save