Fix typo enviroment => environment (#13195)

This commit is contained in:
Tony Xia 2022-10-04 11:02:26 +11:00 committed by GitHub
parent 9cf98dacb3
commit 962fee5fe5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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

View file

@ -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;

View file

@ -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.