diff --git a/onnxruntime/core/providers/dml/OperatorAuthorHelper/Common.h b/onnxruntime/core/providers/dml/OperatorAuthorHelper/Common.h index 34f60e1f6f..c85c1d7e52 100644 --- a/onnxruntime/core/providers/dml/OperatorAuthorHelper/Common.h +++ b/onnxruntime/core/providers/dml/OperatorAuthorHelper/Common.h @@ -20,13 +20,12 @@ }\ } -template T clamp_cast(I input) -{ - return static_cast(std::clamp(input, std::numeric_limits::lowest(), std::numeric_limits::max())); -} - namespace OperatorHelper { + template T clamp_cast(I input) + { + return static_cast(std::clamp(input, std::numeric_limits::lowest(), std::numeric_limits::max())); + } enum TensorAxis { N, C, H, W, DoNotCoerce = UINT_MAX, LeftAligned = INT_MAX, RightAligned = INT_MIN, NoPlacementAdjustment = 0 }; enum BroadcastMode { NoBroadcast, UnidirectionalBroadcast, MultidirectionalBroadcast };