From 1ccd38017429063bc6d2806089cc8c961f13ca99 Mon Sep 17 00:00:00 2001 From: Dwayne Robinson Date: Wed, 17 Jul 2024 23:51:51 -0700 Subject: [PATCH] Fix indentation DmlOperatorResize.cpp again. --- .../src/Operators/DmlOperatorResize.cpp | 44 +++++++++---------- 1 file changed, 22 insertions(+), 22 deletions(-) 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);