diff options
author | Tim Shen <timshen@google.com> | 2018-08-30 11:20:16 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-08-30 11:29:03 -0700 |
commit | 09f2c342c0e74834bebf8045d5e77dcef8323539 (patch) | |
tree | 3a969695f54840366629df7f39e4da7f9ac103cd /tensorflow/compiler/tests | |
parent | 9e12f1df3270b5e0b310645e6c3cae9fbd3f5dfc (diff) |
Remove (Mutable)ArraySlice implementation and alias them to absl::Span.
There are several API migrations happening:
* ArraySlice's sub-slice constructor => .subspan
* MutableArraySlice's container pointer constructor => absl::MakeSpan
PiperOrigin-RevId: 210946124
Diffstat (limited to 'tensorflow/compiler/tests')
-rw-r--r-- | tensorflow/compiler/tests/randomized_tests.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tensorflow/compiler/tests/randomized_tests.cc b/tensorflow/compiler/tests/randomized_tests.cc index c0ea242044..1b8198dba8 100644 --- a/tensorflow/compiler/tests/randomized_tests.cc +++ b/tensorflow/compiler/tests/randomized_tests.cc @@ -1884,7 +1884,8 @@ TEST_F(OpTest, DynamicStitch) { for (int i = 0; i < n; ++i) { TensorShape shape(index_dims[i]); Tensor t = test::AsTensor<int32>( - gtl::ArraySlice<int32>(indices, pos, shape.num_elements()), shape); + gtl::ArraySlice<int32>(indices).subspan(pos, shape.num_elements()), + shape); builder.Input(t); pos += t.NumElements(); } |