mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-31 23:27:43 +00:00
Accept success codes other than S_OK in RoInitialize (#7979)
* Accept success codes other than S_OK in RoInitialize * Use multithreaded apartment in raw WinML tests
This commit is contained in:
parent
eb354853d3
commit
fc331cbd5d
2 changed files with 2 additions and 2 deletions
|
|
@ -24,7 +24,7 @@ auto CreateModelAsBuffer(const wchar_t* model_path)
|
|||
}
|
||||
|
||||
static void RawApiTestsApiTestsClassSetup() {
|
||||
WINML_EXPECT_HRESULT_SUCCEEDED(RoInitialize(RO_INIT_TYPE::RO_INIT_SINGLETHREADED));
|
||||
WINML_EXPECT_HRESULT_SUCCEEDED(RoInitialize(RO_INIT_TYPE::RO_INIT_MULTITHREADED));
|
||||
}
|
||||
|
||||
static void CreateModelFromFilePath() {
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ ml::learning_model_device CreateDevice(DeviceType deviceType)
|
|||
}
|
||||
|
||||
static void RawApiTestsGpuApiTestsClassSetup() {
|
||||
WINML_EXPECT_HRESULT_SUCCEEDED(RoInitialize(RO_INIT_TYPE::RO_INIT_SINGLETHREADED));
|
||||
WINML_EXPECT_HRESULT_SUCCEEDED(RoInitialize(RO_INIT_TYPE::RO_INIT_MULTITHREADED));
|
||||
}
|
||||
|
||||
static void CreateDirectXDevice() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue