Merged
Conversation
jywu-msft
reviewed
Mar 26, 2020
jywu-msft
reviewed
Mar 26, 2020
jywu-msft
reviewed
Mar 26, 2020
jywu-msft
reviewed
Mar 26, 2020
jywu-msft
reviewed
Mar 26, 2020
jywu-msft
reviewed
Mar 26, 2020
jywu-msft
reviewed
Mar 26, 2020
jywu-msft
reviewed
Mar 26, 2020
prasanthpul
requested changes
Mar 26, 2020
prasanthpul
requested changes
Mar 27, 2020
natke
reviewed
Apr 9, 2020
Contributor
|
Q: How to force to single threaded execution A: Please do both of the following:
Python example: #!/usr/bin/python3
os.environ["OMP_NUM_THREADS"] = "1"
import onnxruntime
opts = onnxruntime.SessionOptions()
opts.intra_op_num_threads = 1
opts.inter_op_num_threads = 1
opts.execution_mode = onnxruntime.ExecutionMode.ORT_SEQUENTIAL
ort_session = onnxruntime.InferenceSession('/path/to/model.onnx', sess_options=opts)C++ example: // initialize enviroment...one enviroment per process
Ort::Env env(ORT_LOGGING_LEVEL_WARNING, "test");
// initialize session options if needed
Ort::SessionOptions session_options;
session_options.SetIntraOpNumThreads(1);
session_options.SetInterOpNumThreads(1);
#ifdef _WIN32
const wchar_t* model_path = L"squeezenet.onnx";
#else
const char* model_path = "squeezenet.onnx";
#endif
Ort::Session session(env, model_path, session_options); |
prasanthpul
requested changes
Apr 9, 2020
natke
previously approved these changes
Apr 23, 2020
Contributor
natke
left a comment
There was a problem hiding this comment.
I've left a few wording suggestions. Overall, looks great, much improved!
Co-Authored-By: Nat Kershaw (MSFT) <nakersha@microsoft.com>
Co-Authored-By: Nat Kershaw (MSFT) <nakersha@microsoft.com>
Co-Authored-By: Nat Kershaw (MSFT) <nakersha@microsoft.com>
Co-Authored-By: Nat Kershaw (MSFT) <nakersha@microsoft.com>
prasanthpul
previously approved these changes
May 2, 2020
pranavsharma
reviewed
May 2, 2020
pranavsharma
approved these changes
May 5, 2020
Contributor
Author
|
/azp run Linux CPU CI Pipeline,Linux GPU CI Pipeline,Linux GPU TensorRT CI Pipeline,MacOS CI Pipeline,Windows GPU CI Pipeline,Windows GPU TensorRT CI Pipeline,MacOS NoContribops CI Pipeline,Linux CPU x64 NoContribops CI Pipeline,Windows CPU CI Pipeline |
|
Azure Pipelines could not run because the pipeline triggers exclude this branch/path. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adding a FAQ page with common questions and issues to help troubleshooting.