aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/xla/service/allocation_tracker.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/compiler/xla/service/allocation_tracker.cc')
-rw-r--r--tensorflow/compiler/xla/service/allocation_tracker.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/tensorflow/compiler/xla/service/allocation_tracker.cc b/tensorflow/compiler/xla/service/allocation_tracker.cc
index 1ed6142dce..ef5e211646 100644
--- a/tensorflow/compiler/xla/service/allocation_tracker.cc
+++ b/tensorflow/compiler/xla/service/allocation_tracker.cc
@@ -176,13 +176,13 @@ StatusOr<std::vector<GlobalDataHandle>> AllocationTracker::DeconstructTuple(
}
StatusOr<std::vector<const ShapedBuffer*>> AllocationTracker::Resolve(
- const GlobalDataHandle& data) {
+ const GlobalDataHandle& data) const {
tensorflow::mutex_lock lock(mutex_);
return AllocationTracker::ResolveInternal(data);
}
StatusOr<const ShapedBuffer*> AllocationTracker::ResolveForReplica(
- const GlobalDataHandle& data, int replica_id) {
+ const GlobalDataHandle& data, int replica_id) const {
tensorflow::mutex_lock lock(mutex_);
TF_ASSIGN_OR_RETURN(std::vector<const ShapedBuffer*> replicated_buffers,
ResolveInternal(data));
@@ -196,7 +196,7 @@ StatusOr<const ShapedBuffer*> AllocationTracker::ResolveForReplica(
}
StatusOr<std::vector<const ShapedBuffer*>> AllocationTracker::ResolveInternal(
- const GlobalDataHandle& data) {
+ const GlobalDataHandle& data) const {
VLOG(2) << "resolve:" << data.handle();
auto it = handle_to_shaped_buffers_.find(data.handle());
if (it == handle_to_shaped_buffers_.end()) {