mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-18 21:21:17 +00:00
ERROR_NOT_SUPPORTED doesn't trigger Failed Hresult. Need E_NOTIMPL (#3396)
This commit is contained in:
parent
052c1fda44
commit
77c7d09ced
1 changed files with 1 additions and 1 deletions
|
|
@ -154,7 +154,7 @@ bool IsFloat16Supported(const winrt::Windows::AI::MachineLearning::LearningModel
|
|||
|
||||
bool IsFloat16Supported(ID3D12Device* device) {
|
||||
#ifndef USE_DML
|
||||
throw winrt::hresult_error(ERROR_NOT_SUPPORTED, L"IsFloat16Supported is not implemented for WinML only build.");
|
||||
throw winrt::hresult_error(E_NOTIMPL, L"IsFloat16Supported is not implemented for WinML only build.");
|
||||
#else
|
||||
bool isBlocked;
|
||||
if (FAILED(IsFloat16Blocked(*device, &isBlocked)) || isBlocked) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue