mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-18 21:21:17 +00:00
Fix typo enviroment => environment (#13195)
This commit is contained in:
parent
9cf98dacb3
commit
962fee5fe5
4 changed files with 5 additions and 5 deletions
|
|
@ -52,7 +52,7 @@ ort_session = onnxruntime.InferenceSession('/path/to/model.onnx', sess_options=o
|
|||
|
||||
**C++ example:**
|
||||
```
|
||||
// initialize enviroment...one enviroment per process
|
||||
// initialize environment...one environment per process
|
||||
Ort::Env env(ORT_LOGGING_LEVEL_WARNING, "test");
|
||||
|
||||
// initialize session options if needed
|
||||
|
|
|
|||
|
|
@ -155,8 +155,8 @@ void run_ort_trt2() {
|
|||
|
||||
void ort_trt_run_with_default_options() {
|
||||
//*************************************************************************
|
||||
// initialize enviroment...one enviroment per process
|
||||
// enviroment maintains thread pools and other state info
|
||||
// initialize environment...one environment per process
|
||||
// environment maintains thread pools and other state info
|
||||
Ort::Env env(ORT_LOGGING_LEVEL_WARNING, "test");
|
||||
|
||||
// initialize session options if needed
|
||||
|
|
|
|||
|
|
@ -272,7 +272,7 @@ static std::unique_ptr<onnxruntime::InferenceSession> CreateSession() {
|
|||
#ifdef USE_CUDA
|
||||
NvtxRange range(__func__);
|
||||
#endif
|
||||
// Enviroment shared by all sessions.
|
||||
// Environment shared by all sessions.
|
||||
static onnxruntime::Environment& pybind_default_env = onnxruntime::python::GetTrainingORTEnv();
|
||||
// All sessions use the same config.
|
||||
static onnxruntime::SessionOptions sess_opts;
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ int main(int argc, char* argv[]) {
|
|||
-1};
|
||||
|
||||
std::unique_ptr<Environment> env;
|
||||
ORT_ENFORCE(Environment::Create(nullptr, env) == Status::OK(), "Enviroment creation fails.");
|
||||
ORT_ENFORCE(Environment::Create(nullptr, env) == Status::OK(), "Environment creation fails.");
|
||||
ORT_ENFORCE(parse_arguments(argc, argv, params) == Status::OK(), "Parsing command-line argument fails");
|
||||
|
||||
// Set up MPI.
|
||||
|
|
|
|||
Loading…
Reference in a new issue