ORT tutorials and samples #529
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds c_cxx samples showcasing the new 1.23.0 features in a tutorial format. I was tempted to make this the main c_cxx directory and move all the older samples to a subfolder. Please let me know what you think.
The idea was to make each of the samples self-contained at the cost of some minimal duplication. The samples should be buildable individually or jointly from the c_cxx root folder.
The numbering of the sample is a multiple of 10 to subsequently add smaller additions before or after a certain sample without changing the numbering of the existing samples. Higher numbers indicate more advanced concepts.
At the moment, binaries to ONNX Runtime libraries and execution providers must be specified at build time using CMake variables. Ideally, we can offer a way to automatically download the binaries once 1.23 is released.
The python API samples for device tensors were also refactored to use hardware independent tensors and a compile sample for EP context files was added.