mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-30 20:18:08 +00:00
Build fix
This commit is contained in:
parent
4a510e5ba4
commit
fc1af00d6c
1 changed files with 13 additions and 1 deletions
|
|
@ -1158,8 +1158,20 @@ namespace Windows::AI::MachineLearning::Adapter
|
|||
{
|
||||
ORT_TRY
|
||||
{
|
||||
ComPtr<IMLOperatorTensor> tensorWrapper = m_constantInputGetter(inputIndex);
|
||||
*tensor = nullptr;
|
||||
|
||||
auto constantInput = m_constantInputGetter(inputIndex);
|
||||
if (!std::holds_alternative<ComPtr<IMLOperatorTensor>>(constantInput))
|
||||
{
|
||||
assert(std::find(
|
||||
m_requiredConstantCpuInputs.begin(),
|
||||
m_requiredConstantCpuInputs.end(),
|
||||
inputIndex) == m_requiredConstantCpuInputs.end());
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
auto tensorWrapper = std::get<ComPtr<IMLOperatorTensor>>(constantInput);
|
||||
if (tensorWrapper == nullptr)
|
||||
{
|
||||
assert(std::find(
|
||||
|
|
|
|||
Loading…
Reference in a new issue