From 77c7d09ced384e030d6229a973713646c78f8bb6 Mon Sep 17 00:00:00 2001 From: Brian Martin <42186431+martinb35@users.noreply.github.com> Date: Wed, 1 Apr 2020 10:06:00 -0700 Subject: [PATCH] ERROR_NOT_SUPPORTED doesn't trigger Failed Hresult. Need E_NOTIMPL (#3396) --- winml/lib/Common/CommonDeviceHelpers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winml/lib/Common/CommonDeviceHelpers.cpp b/winml/lib/Common/CommonDeviceHelpers.cpp index dd5cc5962d..e23a7f475b 100644 --- a/winml/lib/Common/CommonDeviceHelpers.cpp +++ b/winml/lib/Common/CommonDeviceHelpers.cpp @@ -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) {