Searched refs:x_fwd (Results 1 – 2 of 2) sorted by relevance
279 int64 x_fwd = x < 0 ? dim_i + x : x; // make negative indices positive in ValidateStridedSliceOp() local280 return x_fwd < valid_range[0] in ValidateStridedSliceOp()282 : x_fwd > valid_range[1] ? valid_range[1] : x_fwd; in ValidateStridedSliceOp()299 int64 x_fwd = begin_i < 0 ? dim_i + begin_i : begin_i; in ValidateStridedSliceOp() local300 begin_i = x_fwd; in ValidateStridedSliceOp()302 if (x_fwd < 0 || x_fwd >= dim_i) { in ValidateStridedSliceOp()
2455 x_fwd = size + x if x < 0 else x # make negative indices positive2456 return max(valid_range[0], min(valid_range[1], x_fwd))