aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/xla/service/tuple_points_to_analysis_test.cc
diff options
context:
space:
mode:
authorGravatar Tim Shen <timshen@google.com>2018-08-30 16:03:10 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-08-30 16:07:27 -0700
commit6f879f891abe2e267c5cf512d034d7c3641cfdb0 (patch)
tree33dfda2aa13bdec06d3aa330dd5816441d449fa7 /tensorflow/compiler/xla/service/tuple_points_to_analysis_test.cc
parent5d5591fbd4624ff7e50f305464667315f2d41ebb (diff)
[XLA] Rename all (Mutable)ArraySlice to absl::Span.
PiperOrigin-RevId: 210998142
Diffstat (limited to 'tensorflow/compiler/xla/service/tuple_points_to_analysis_test.cc')
-rw-r--r--tensorflow/compiler/xla/service/tuple_points_to_analysis_test.cc12
1 files changed, 5 insertions, 7 deletions
diff --git a/tensorflow/compiler/xla/service/tuple_points_to_analysis_test.cc b/tensorflow/compiler/xla/service/tuple_points_to_analysis_test.cc
index 10d382e8ab..a32d1f9026 100644
--- a/tensorflow/compiler/xla/service/tuple_points_to_analysis_test.cc
+++ b/tensorflow/compiler/xla/service/tuple_points_to_analysis_test.cc
@@ -72,9 +72,8 @@ class TuplePointsToAnalysisTest : public HloTestBase {
// Checks that the given points-to set contains exactly (unordered) the given
// LogicalBuffers.
- void ExpectHasBuffers(
- const PointsToSet::BufferList& points_to_set,
- tensorflow::gtl::ArraySlice<const LogicalBuffer*> buffers) {
+ void ExpectHasBuffers(const PointsToSet::BufferList& points_to_set,
+ absl::Span<const LogicalBuffer* const> buffers) {
std::vector<const LogicalBuffer*> vec(buffers.begin(), buffers.end());
EXPECT_THAT(points_to_set, UnorderedElementsAreArray(vec));
}
@@ -83,7 +82,7 @@ class TuplePointsToAnalysisTest : public HloTestBase {
// top-level buffers of the given instructions.
void ExpectHasTopLevelBuffers(
const PointsToSet::BufferList& points_to_set,
- tensorflow::gtl::ArraySlice<HloInstruction*> instructions) {
+ absl::Span<HloInstruction* const> instructions) {
PointsToSet::BufferList buffers;
for (auto instruction : instructions) {
buffers.push_back(GetBuffer(instruction, /*index=*/{}));
@@ -94,7 +93,7 @@ class TuplePointsToAnalysisTest : public HloTestBase {
// Overload which takes a set instead of a vector.
void ExpectHasTopLevelBuffers(
const PointsToSet::BufferSet& points_to_set,
- tensorflow::gtl::ArraySlice<HloInstruction*> instructions) {
+ absl::Span<HloInstruction* const> instructions) {
ExpectHasTopLevelBuffers(
PointsToSet::BufferList(points_to_set.begin(), points_to_set.end()),
instructions);
@@ -104,8 +103,7 @@ class TuplePointsToAnalysisTest : public HloTestBase {
// aliases which are exactly (unordered) the given instruction/index pairs.
void ExpectHasBufferAliases(
const HloInstruction* instruction, const ShapeIndex& index,
- tensorflow::gtl::ArraySlice<std::pair<HloInstruction*, ShapeIndex>>
- expected) {
+ absl::Span<const std::pair<HloInstruction*, ShapeIndex>> expected) {
const LogicalBuffer* buffer =
points_to_analysis_->GetBufferDefinedAt(instruction, index)
.ValueOrDie();