mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-28 03:20:58 +00:00
Extend temporary enum workaround to non-compiled path
This commit is contained in:
parent
2efa2ab081
commit
defde2cd9e
1 changed files with 11 additions and 1 deletions
|
|
@ -86,9 +86,19 @@ namespace Dml
|
|||
}
|
||||
else
|
||||
{
|
||||
auto operatorDescCopy = operatorDesc;
|
||||
|
||||
// TODO: Change as new header is ingested
|
||||
if (operatorDescCopy.Type == (DML_OPERATOR_TYPE) DML_OPERATOR_QUANTIZED_LINEAR_AVERAGE_POOLING)
|
||||
operatorDescCopy.Type = (DML_OPERATOR_TYPE) 169;
|
||||
|
||||
// TODO: Change as new header is ingested
|
||||
if (operatorDescCopy.Type == (DML_OPERATOR_TYPE) DML_OPERATOR_MATRIX_MULTIPLY_INTEGER_TO_FLOAT)
|
||||
operatorDescCopy.Type = (DML_OPERATOR_TYPE) 170;
|
||||
|
||||
// Create and compile the operator.
|
||||
ComPtr<IDMLOperator> dmlOperator;
|
||||
ORT_THROW_IF_FAILED(m_dmlDevice->CreateOperator(&operatorDesc, IID_PPV_ARGS(&dmlOperator)));
|
||||
ORT_THROW_IF_FAILED(m_dmlDevice->CreateOperator(&operatorDescCopy, IID_PPV_ARGS(&dmlOperator)));
|
||||
|
||||
DML_EXECUTION_FLAGS executionFlags = GetExecutionFlags();
|
||||
ORT_THROW_IF_FAILED(m_dmlDevice->CompileOperator(dmlOperator.Get(), executionFlags, IID_PPV_ARGS(&m_compiledOperator)));
|
||||
|
|
|
|||
Loading…
Reference in a new issue