We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cac1cb4 commit 6b971f6Copy full SHA for 6b971f6
src/algorithms/machinelearning/onnxpredict.cpp
@@ -86,11 +86,7 @@ void OnnxPredict::configure() {
86
87
// use the first input when no input is defined
88
if (_nInputs == 0){
89
- // take the first input
90
- _inputs.push_back(_session.GetInputNames()[0]);
91
- _nInputs = _inputs.size();
92
- // inform the first model input will be used
93
- E_INFO("OnnxPredict: using the first model input '" + _inputs[0] + "'");
+ throw EssentiaException("No model input was defined.\n" + availableInputInfo());
94
}
95
96
// define _outputs with the first model output when no output is provided
0 commit comments