mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-03 23:49:44 +00:00
Remove dead code from HandleNegativeAxis
This commit is contained in:
parent
06db89cf13
commit
040c28ff39
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue