exit if onnxmodel exec fails

old-commit-hash: 8c478708ee53c7b473989cd48ac1fdad8702c372
This commit is contained in:
mitchellgoffpc
2023-08-21 19:22:47 -07:00
parent 69570ef251
commit b69de80962
+1
View File
@@ -35,6 +35,7 @@ ONNXModel::ONNXModel(const std::string path, float *_output, size_t _output_size
close(pipeout[0]);
close(pipeout[1]);
execvp(onnx_runner.c_str(), argv);
exit(1); // exit if the exec fails
}
// parent