Fix by Boggyver - Add Traffic Convention data to input buffer (#1405)

Credit goes to Boggyver for finding this.
pull/1406/head
Andrew Sidhu 5 years ago committed by GitHub
parent ce4528c392
commit a120adaecc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      selfdrive/modeld/runners/tfmodel.cc

@ -102,6 +102,9 @@ void TFModel::execute(float *net_input_buf, int buf_size) {
if (rnn_input_buf != NULL) {
pwrite(rnn_input_buf, rnn_state_size);
}
if (traffic_convention_input_buf != NULL) {
pwrite(traffic_convention_input_buf, traffic_convention_size);
}
pread(output, output_size);
}

Loading…
Cancel
Save