diff options
author | Yunxing Dai <yunxing@google.com> | 2018-08-21 17:08:12 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-08-21 17:12:22 -0700 |
commit | 3cb3a450ed845c4602080f43d7bb6cfade298a22 (patch) | |
tree | 21e5a40fcb72737bd2cb00829bd049c5173d20e0 /tensorflow/compiler/xla/service/hlo_instruction.h | |
parent | 95d718a8a41370f31ccb3b32aaac7fd00b0291e4 (diff) |
[XLA] gtl::optional->absl::optional
PiperOrigin-RevId: 209686671
Diffstat (limited to 'tensorflow/compiler/xla/service/hlo_instruction.h')
-rw-r--r-- | tensorflow/compiler/xla/service/hlo_instruction.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tensorflow/compiler/xla/service/hlo_instruction.h b/tensorflow/compiler/xla/service/hlo_instruction.h index 41bb40b7bd..69397a4b37 100644 --- a/tensorflow/compiler/xla/service/hlo_instruction.h +++ b/tensorflow/compiler/xla/service/hlo_instruction.h @@ -449,7 +449,7 @@ class HloInstruction { HloComputation* reduce_computation, tensorflow::gtl::ArraySlice<int64> replica_group_ids, tensorflow::StringPiece barrier, - const tensorflow::gtl::optional<int64>& all_reduce_id); + const absl::optional<int64>& all_reduce_id); // This op handles the communication of an Alltoall operation. On each core, // the operands are N ops in the same shape, where N is the number of cores @@ -1038,9 +1038,9 @@ class HloInstruction { return sharding_ ? *sharding_ : default_; } // Returns the sharding unique device, if any. - tensorflow::gtl::optional<int64> sharding_unique_device() const { + absl::optional<int64> sharding_unique_device() const { if (sharding_ == nullptr) { - return tensorflow::gtl::optional<int64>(); + return absl::optional<int64>(); } return sharding_->UniqueDevice(); } @@ -1427,7 +1427,7 @@ class HloInstruction { void set_cross_replica_sum_barrier(const string& barrier); // Delegates to HloAllReduceInstruction::all_reduce_id. - tensorflow::gtl::optional<int64> all_reduce_id() const; + absl::optional<int64> all_reduce_id() const; // Returns data on the window in a windowed operation such as // convolution. @@ -1557,7 +1557,7 @@ class HloInstruction { // NOTE: For all instructions other than kFusion, being elementwise on one of // the operands is equivalent to being elementwise on all the operands. virtual bool IsElementwiseImpl( - const tensorflow::gtl::optional<int64>& operand_idx) const; + const absl::optional<int64>& operand_idx) const; // Prints an instruction to a string. // // The canonical string representation needs to name operands and instruction |