-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR change two aspects of the OnnxRuntimeBase class. - First, it moves the inference from protected to public, this means it is no longer necessary to create a new class for every single network we want to import, and we can now directly use the OnnxRuntimeBase one. - Second, this Pr allows the use of batch input (instead of running the network once per entry we can directly use a vector of entry) this can speed up greatly the inference. It would require the model to have been implemented with dynamic axes to work, but the code still supports non-dynamic axes. This still support the old interface where only one entry was used is thus non-breaking. This PR will be needed later on for the integration of the ML Ambiguity solver. (The use of batch input result there in a factor 7 speed up)
- Loading branch information
1 parent
1e83152
commit 4282799
Showing
2 changed files
with
75 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters