diff options
author | 2018-01-12 12:00:29 -0800 | |
---|---|---|
committer | 2018-01-12 12:03:56 -0800 | |
commit | 115367291897c5895c14f94a0ea46dc0ac6cdeec (patch) | |
tree | 851202873dc9e64400d7f47ec87f245da0f1af09 /tensorflow/compiler/xla/executable_run_options.h | |
parent | ec804af7d84034868701b428a9f28bf6dd98deb1 (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.h | 2 |
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; |