aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/llvm
diff options
context:
space:
mode:
authorGravatar RJ Ryan <rjryan@google.com>2018-06-27 17:30:52 -0700
committerGravatar Gunhan Gulsoy <gunan@google.com>2018-06-28 21:37:43 -0700
commit9bcbfc1636d98e99d821c1a5292a5fe70663ccdb (patch)
treed4066528dc34ab1e6b0cb3abcbee6ff6165429b0 /third_party/llvm
parente3eac29c3498cfc64bcef5022b67aaf04d8b23da (diff)
Ignore stop indices when shrink_axis_mask is set in tf.lite StridedSlice implementation.
Due to an issue with negative StridedSlice indices in TensorFlow, the end indices can specify degenerate slices when negative indices are used to shrink an axis (e.g. for tf.range(4)[-1], start is -1, end is 0, and stride is 1). This fix works around the issue by ignoring stop indices entirely when an axis is shrinking, since in order to be shrunk the length is by definition 1. Fixes Issue #19260. PiperOrigin-RevId: 202398678
Diffstat (limited to 'third_party/llvm')
0 files changed, 0 insertions, 0 deletions