Skip to content

Commit dd6bc30

Browse files
authored
Update test_inference.cc
1 parent 4338da2 commit dd6bc30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

onnxruntime/test/wasm/test_inference.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ TEST(WebAssemblyTest, test) {
1919
Ort::GetApi().SetGlobalInterOpNumThreads(envOpts, numInterOpsThreads);
2020
Ort::GetApi().SetGlobalSpinControl(envOpts, 1);
2121
Ort::GetApi().CreateEnvWithGlobalThreadPools(ORT_LOGGING_LEVEL_WARNING, "test", envOpts, &environment);
22-
env = Ort::Env(environment);
22+
Ort::Env ort_env = Ort::Env(environment);
2323

2424
// Ort::Env ort_env;
2525
Ort::Session session{ort_env, "testdata/mul_1.onnx", Ort::SessionOptions{nullptr}};

0 commit comments

Comments
 (0)