From 040c28ff3972347be32bb34b2a82771ac85a7d6e Mon Sep 17 00:00:00 2001 From: Changming Sun Date: Mon, 13 Apr 2020 23:34:59 -0700 Subject: [PATCH] Remove dead code from HandleNegativeAxis --- onnxruntime/core/providers/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onnxruntime/core/providers/common.h b/onnxruntime/core/providers/common.h index c23dded2f9..e12deb0305 100644 --- a/onnxruntime/core/providers/common.h +++ b/onnxruntime/core/providers/common.h @@ -18,7 +18,7 @@ inline int64_t HandleNegativeAxis(int64_t axis, int64_t tensor_rank) { ORT_ENFORCE(axis >= -tensor_rank && axis <= tensor_rank - 1, "axis ", axis, " is not in valid range [-", tensor_rank, ",", tensor_rank - 1, "]"); // Handle negative axis - return axis = axis < 0 ? axis + tensor_rank : axis; + return axis < 0 ? axis + tensor_rank : axis; } /**