onnxruntime/test/fuzzing/src/OnnxPrediction.cpp
// Uses the onnxruntime to load the model
// into a session.
//
Uses the onnxruntime to load the model
into a session.
Uses the onnxruntime to load the model into a session .
OnnxPrediction::OnnxPrediction(std::wstring& onnx_model_file)
:
rawModel{nullptr},
ptrSession{nullptr},
session{ env, onnx_model_file.c_str(), emptySessionOption},
inputNames{session.GetInputCount()},
outputNames{session.GetOutputCount()}
{
  init();
}
OnnxPrediction :: OnnxPrediction ( std :: wstring & onnx_model_file ) : rawModel { nullptr } , ptrSession { nullptr } , session { env , onnx_model_file . c_str ( ) , emptySessionOption } , inputNames { session . GetInputCount ( ) } , outputNames { session . GetOutputCount ( ) } { init ( ) ; }
Uses the onnxruntime to load the model
into a session.
Uses the onnxruntime to load the model into a session .