Skip to content

Commit

Permalink
ERROR_NOT_SUPPORTED doesn't trigger Failed Hresult. Need E_NOTIMPL (m…
Browse files Browse the repository at this point in the history
  • Loading branch information
martinb35 authored Apr 1, 2020
1 parent 052c1fd commit 77c7d09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion winml/lib/Common/CommonDeviceHelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 77c7d09

Please sign in to comment.