diff --git a/onnxruntime/core/providers/dml/DmlExecutionProvider/src/Operators/DmlOperatorResize.cpp b/onnxruntime/core/providers/dml/DmlExecutionProvider/src/Operators/DmlOperatorResize.cpp index a80f8d1c8d033..b93a53fcf8b18 100644 --- a/onnxruntime/core/providers/dml/DmlExecutionProvider/src/Operators/DmlOperatorResize.cpp +++ b/onnxruntime/core/providers/dml/DmlExecutionProvider/src/Operators/DmlOperatorResize.cpp @@ -304,29 +304,29 @@ class DmlOperatorResize : public DmlOperator, public ResizeHelper DML_OPERATOR_DESC opDesc = {}; #if FALSE - const int antialiased = kernelCreationContext.GetOptionalAttribute(AttrName::Antialiased, 0); - DML_RESAMPLE3_OPERATOR_DESC operatorDesc = {}; - operatorDesc.Antialiased = static_cast(antialiased); - operatorDesc.InputTensor = inputDescs.data(); - operatorDesc.OutputTensor = outputDescs.data(); - operatorDesc.InterpolationMode = interpolationMode; - operatorDesc.RoundingDirection = roundingDirection; - operatorDesc.Scales = paddedScales.data(); - operatorDesc.DimensionCount = gsl::narrow_cast(paddedScales.size()); - operatorDesc.InputPixelOffsets = inputPixelOffsets.data(); - operatorDesc.OutputPixelOffsets = outputPixelOffsets.data(); - opDesc = { DML_OPERATOR_RESAMPLE3, &operatorDesc }; + const int antialiased = kernelCreationContext.GetOptionalAttribute(AttrName::Antialiased, 0); + DML_RESAMPLE3_OPERATOR_DESC operatorDesc = {}; + operatorDesc.Antialiased = static_cast(antialiased); + operatorDesc.InputTensor = inputDescs.data(); + operatorDesc.OutputTensor = outputDescs.data(); + operatorDesc.InterpolationMode = interpolationMode; + operatorDesc.RoundingDirection = roundingDirection; + operatorDesc.Scales = paddedScales.data(); + operatorDesc.DimensionCount = gsl::narrow_cast(paddedScales.size()); + operatorDesc.InputPixelOffsets = inputPixelOffsets.data(); + operatorDesc.OutputPixelOffsets = outputPixelOffsets.data(); + opDesc = { DML_OPERATOR_RESAMPLE3, &operatorDesc }; #else - DML_RESAMPLE2_OPERATOR_DESC operatorDesc = {}; - operatorDesc.InputTensor = inputDescs.data(); - operatorDesc.OutputTensor = outputDescs.data(); - operatorDesc.InterpolationMode = interpolationMode; - operatorDesc.RoundingDirection = roundingDirection; - operatorDesc.Scales = paddedScales.data(); - operatorDesc.DimensionCount = gsl::narrow_cast(paddedScales.size()); - operatorDesc.InputPixelOffsets = inputPixelOffsets.data(); - operatorDesc.OutputPixelOffsets = outputPixelOffsets.data(); - opDesc = { DML_OPERATOR_RESAMPLE2, &operatorDesc }; + DML_RESAMPLE2_OPERATOR_DESC operatorDesc = {}; + operatorDesc.InputTensor = inputDescs.data(); + operatorDesc.OutputTensor = outputDescs.data(); + operatorDesc.InterpolationMode = interpolationMode; + operatorDesc.RoundingDirection = roundingDirection; + operatorDesc.Scales = paddedScales.data(); + operatorDesc.DimensionCount = gsl::narrow_cast(paddedScales.size()); + operatorDesc.InputPixelOffsets = inputPixelOffsets.data(); + operatorDesc.OutputPixelOffsets = outputPixelOffsets.data(); + opDesc = { DML_OPERATOR_RESAMPLE2, &operatorDesc }; #endif SetDmlOperatorDesc(opDesc, kernelCreationContext);