Home
last modified time | relevance | path

Searched refs:x_fwd (Results 1 – 2 of 2) sorted by relevance

/external/tensorflow/tensorflow/core/util/
Dstrided_slice_op.cc279 int64 x_fwd = x < 0 ? dim_i + x : x; // make negative indices positive in ValidateStridedSliceOp() local
280 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() local
300 begin_i = x_fwd; in ValidateStridedSliceOp()
302 if (x_fwd < 0 || x_fwd >= dim_i) { in ValidateStridedSliceOp()
/external/tensorflow/tensorflow/python/ops/
Darray_ops.py2455 x_fwd = size + x if x < 0 else x # make negative indices positive
2456 return max(valid_range[0], min(valid_range[1], x_fwd))