aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/xla/executable_run_options.h
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-01-12 12:00:29 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-01-12 12:03:56 -0800
commit115367291897c5895c14f94a0ea46dc0ac6cdeec (patch)
tree851202873dc9e64400d7f47ec87f245da0f1af09 /tensorflow/compiler/xla/executable_run_options.h
parentec804af7d84034868701b428a9f28bf6dd98deb1 (diff)
Make it clear that the DeviceAssignment passed to an execution is immutable.
PiperOrigin-RevId: 181774067
Diffstat (limited to 'tensorflow/compiler/xla/executable_run_options.h')
-rw-r--r--tensorflow/compiler/xla/executable_run_options.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/compiler/xla/executable_run_options.h b/tensorflow/compiler/xla/executable_run_options.h
index deb3ddb203..d4fcbf0493 100644
--- a/tensorflow/compiler/xla/executable_run_options.h
+++ b/tensorflow/compiler/xla/executable_run_options.h
@@ -82,7 +82,7 @@ class ExecutableRunOptions {
ExecutableRunOptions& set_device_assignment(
DeviceAssignment* device_assignment);
- DeviceAssignment* device_assignment() const;
+ const DeviceAssignment* device_assignment() const;
private:
DeviceMemoryAllocator* allocator_ = nullptr;