From 6f879f891abe2e267c5cf512d034d7c3641cfdb0 Mon Sep 17 00:00:00 2001 From: Tim Shen Date: Thu, 30 Aug 2018 16:03:10 -0700 Subject: [XLA] Rename all (Mutable)ArraySlice to absl::Span. PiperOrigin-RevId: 210998142 --- tensorflow/compiler/xla/tests/test_utils.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tensorflow/compiler/xla/tests/test_utils.cc') diff --git a/tensorflow/compiler/xla/tests/test_utils.cc b/tensorflow/compiler/xla/tests/test_utils.cc index 60ada58b2a..c20a7c8fe4 100644 --- a/tensorflow/compiler/xla/tests/test_utils.cc +++ b/tensorflow/compiler/xla/tests/test_utils.cc @@ -183,8 +183,8 @@ StatusOr> MakeFakeLiteralInternal( break; case PRED: { std::uniform_int_distribution generator(0, 1); - TF_CHECK_OK(literal->Populate( - [&](tensorflow::gtl::ArraySlice /*indices*/) { + TF_CHECK_OK( + literal->Populate([&](absl::Span /*indices*/) { return generator(*engine); })); break; @@ -236,8 +236,8 @@ bool NeedsInitValue(const HloUse& use) { // Generate random values that are constrained to the input_shape minus the // output_shape so as not to produce wrapping slices, for instance. -std::unique_ptr MakeRandomIndex( - tensorflow::gtl::ArraySlice index_space, std::minstd_rand0* engine) { +std::unique_ptr MakeRandomIndex(absl::Span index_space, + std::minstd_rand0* engine) { std::vector start_indices(index_space.size()); if (engine != nullptr) { for (int i = 0; i < index_space.size(); ++i) { @@ -294,7 +294,7 @@ std::vector FindConstrainedUses( // generate a constrained literal (either bounded in the case of indices, or // zero in the case of init_values for reductions). StatusOr> CreateLiteralForConstrainedUses( - const tensorflow::gtl::ArraySlice constrained_uses, + const absl::Span constrained_uses, const HloInstruction& param, std::minstd_rand0* engine) { std::vector index_space; bool no_duplicates = false; -- cgit v1.2.3