Skip to content
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

Exec session updates #1173

Merged
merged 36 commits into from
Feb 11, 2022

Conversation

AlexandreEichenberger
Copy link
Collaborator

@etiotto recently introduce an alias for unique_ptr<OMTensor, decltype(&omTensorDestroy)>, and I used (a slightly renamed version of it) everywhere in the code.

Also, our execution session was only supporting vectors of unique ptr of OMTensor, but not the native OMTensorList. I added a function to also support this.

This PR is short, a larger discussion is whether we should add also a C interface in our runtime for execution session, which essentially does dynamic linking of our entry points.

Signed-off-by: Alexandre Eichenberger <alexe@us.ibm.com>
Signed-off-by: Alexandre Eichenberger <alexe@us.ibm.com>
Copy link
Collaborator

@etiotto etiotto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

ExecutionSession::run(
std::vector<std::unique_ptr<OMTensor, decltype(&omTensorDestroy)>> ins) {
std::vector<OMTensorUniquePtr> ExecutionSession::run(
std::vector<OMTensorUniquePtr> ins) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the name OMTensorUniquePtr, will use it as well.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed it in your recent code as well.

Signed-off-by: Alexandre Eichenberger <alexe@us.ibm.com>
@AlexandreEichenberger AlexandreEichenberger merged commit be32233 into onnx:main Feb 11, 2022
@jenkins-droid
Copy link
Collaborator

Jenkins Linux amd64 Build #3847 [push] Exec session updates (#1... started at 20:49

@jenkins-droid
Copy link
Collaborator

Jenkins Linux ppc64le Build #2954 [push] Exec session updates (#1... started at 21:50

@jenkins-droid
Copy link
Collaborator

Jenkins Linux s390x Build #3839 [push] Exec session updates (#1... started at 21:50

@jenkins-droid
Copy link
Collaborator

Jenkins Linux ppc64le Build #2954 [push] Exec session updates (#1... passed after 57 min

@jenkins-droid
Copy link
Collaborator

Jenkins Linux amd64 Build #3847 [push] Exec session updates (#1... passed after 1 hr 3 min

@jenkins-droid
Copy link
Collaborator

Jenkins Linux s390x Build #3839 [push] Exec session updates (#1... passed after 1 hr 3 min

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants