Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block at init session when running. #336

Closed
shonmark opened this issue Dec 21, 2023 · 2 comments
Closed

Block at init session when running. #336

shonmark opened this issue Dec 21, 2023 · 2 comments

Comments

@shonmark
Copy link

Describe the issue

Hi, thanks for your project. I use the version OpenVINO™ 2023.0 for OnnxRuntime 1.15, downloaded from . If I do not use OrtSessionOptionsAppendExecutionProvider_OpenVINO, the code running ok, code like:

class BasicModel {
protected:
Ort::Session ort_session{nullptr};
public:
void BasicModel::create_session()
}
void BasicModel::create_session(){
Ort::SessionOptions session_options;
session_options.DisableCpuMemArena();
// std::string inference_device = "CPU_FP32";
// Ort::ThrowOnError(OrtSessionOptionsAppendExecutionProvider_OpenVINO(session_options, inference_device.c_str()));
const ORTCHAR_T* modelPath = L"Sco_Seg_Torso_V1.2.onnx";
Ort::Session session(ort_env, modelPath, session_options);
}

the code running without any problem. But, when I try create session in my class, like:

void BasicModel::create_session(){
Ort::SessionOptions session_options;
session_options.DisableCpuMemArena();
std::string inference_device = "CPU_FP32";
Ort::ThrowOnError(OrtSessionOptionsAppendExecutionProvider_OpenVINO(session_options, inference_device.c_str()));
const ORTCHAR_T* modelPath = L"Sco_Seg_Torso_V1.2.onnx";
Ort::Session session(ort_env, modelPath, session_options);
}
the code will block at the last line : init the session, and without any error, just blocked and no return, no skipping out.

To reproduce

code is provided in description.

Urgency

No response

Platform

Windows

OS Version

Windows 11 Home 22H2

ONNX Runtime Installation

Built from Source

ONNX Runtime Version or Commit ID

OpenVINO™ 2023.0 for OnnxRuntime 1.15

ONNX Runtime API

C++

Architecture

X64

Execution Provider

OpenVINO

Execution Provider Library Version

No response

Model File

No response

Is this a quantized model?

Yes

Copy link

This issue has been automatically marked as stale due to inactivity and will be closed in 30 days if no further activity occurs. If further support is needed, please provide an update and/or more details.

@github-actions github-actions bot added the stale label Jan 20, 2024
Copy link

This issue has been automatically closed due to inactivity. Please reactivate if further support is needed.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant