Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/core/util/
Dstrided_slice_op.cc320 int64 interval_length; in ValidateStridedSliceOp() local
323 interval_length = end_i - begin_i; in ValidateStridedSliceOp()
328 interval_length = 1; in ValidateStridedSliceOp()
336 interval_length = -dim_i; in ValidateStridedSliceOp()
338 interval_length = dim_i; in ValidateStridedSliceOp()
347 if (interval_length == 0 || ((interval_length < 0) != (stride_i < 0))) { in ValidateStridedSliceOp()
350 size_i = interval_length / stride_i + in ValidateStridedSliceOp()
351 (interval_length % stride_i != 0 ? 1 : 0); in ValidateStridedSliceOp()
/external/tensorflow/tensorflow/python/ops/
Darray_ops.py2460 interval_length = end - begin
2461 if interval_length == 0 or ((interval_length < 0) != (stride < 0)):
2464 remainder = 1 if interval_length % stride != 0 else 0
2465 return interval_length // stride + remainder