-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add working Onnxruntime Producer #254
Conversation
include/ml.hxx
Outdated
throw std::runtime_error("Number of input parameters does not match"); | ||
} | ||
|
||
std::string replace_str = std::string("EVTID"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add a comment here that this is only needed if an even/odd splitting used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your right, in the generic version, this is not required
include/ml.hxx
Outdated
->debug("Inference time: {} mus", timer.RealTime() * 1000 * 1000); | ||
return output; | ||
}; | ||
auto df3 = df2.Define(outputname, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see any definition of df2
, is that correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be
df1 = df.Define(outputname,
// std::unique_ptr<Ort::Session> session_ptr(session); | ||
// sessions_map[modelPath] = std::move(session_ptr); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commented line can be dropped, I guess.
src/utility/OnnxSessionManager.cxx
Outdated
size_t inputTensorSize = vectorProduct(input_node_dims); | ||
size_t outputTensorSize = vectorProduct(output_node_dims); | ||
|
||
// outputTensorSize = 8; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be dropped.
b7f730a
to
726d13d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DefineMassColumns
can also be removed from ml.hxx. Otherwise everything fine!
This PR adds a generic implementation of an OnnxRuntimeProducer