aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/xla/service/service.h
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-10-09 16:53:29 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-10-09 17:06:10 -0700
commitbb5fc614a4a358b350ef8dd19cb7010760fa9b29 (patch)
tree43a745ffdc409d0ff4660342d6a62735ac366a13 /tensorflow/compiler/xla/service/service.h
parent65b7d0b2f84c334327a295bf41bc06c7f6b8ffe5 (diff)
[XLA] Cleanup: Make AllocationTracker::Resolve const.
So that when resolving some global data, we don't have to worry whether "Resolve" is going to mutate the real data. PiperOrigin-RevId: 216448145
Diffstat (limited to 'tensorflow/compiler/xla/service/service.h')
-rw-r--r--tensorflow/compiler/xla/service/service.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/compiler/xla/service/service.h b/tensorflow/compiler/xla/service/service.h
index 1f62fad4c8..8cf1a7b9f0 100644
--- a/tensorflow/compiler/xla/service/service.h
+++ b/tensorflow/compiler/xla/service/service.h
@@ -191,7 +191,7 @@ class Service : public ServiceInterface {
// Prepare the arguments for executing parallel.
StatusOr<std::vector<std::vector<const ShapedBuffer*>>> GetArguments(
const ExecutionOptions& execution_options,
- absl::Span<const GlobalDataHandle* const> arguments);
+ absl::Span<const GlobalDataHandle* const> arguments) const;
protected:
friend class LocalExecutable;
@@ -208,7 +208,7 @@ class Service : public ServiceInterface {
StatusOr<std::vector<std::vector<const ShapedBuffer*>>>
ResolveAndValidateArguments(
absl::Span<const GlobalDataHandle* const> arguments,
- absl::Span<se::StreamExecutor* const> stream_executors);
+ absl::Span<se::StreamExecutor* const> stream_executors) const;
// Create a Hlo module config for the given program shape and arguments.
// execution_options is optional; if not given a default is used.