aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/xla/executable_run_options.h
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/compiler/xla/executable_run_options.h')
-rw-r--r--tensorflow/compiler/xla/executable_run_options.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/tensorflow/compiler/xla/executable_run_options.h b/tensorflow/compiler/xla/executable_run_options.h
index d4fcbf0493..c7a20bb33c 100644
--- a/tensorflow/compiler/xla/executable_run_options.h
+++ b/tensorflow/compiler/xla/executable_run_options.h
@@ -16,6 +16,8 @@ limitations under the License.
#ifndef TENSORFLOW_COMPILER_XLA_EXECUTABLE_RUN_OPTIONS_H_
#define TENSORFLOW_COMPILER_XLA_EXECUTABLE_RUN_OPTIONS_H_
+#include "tensorflow/compiler/xla/types.h"
+
// Intentionally forward declared so that ExecutableRunOptions can be linked
// into an XLA-compiled binary without having to link all of the pointed-to
// objects (e.g., for an ahead-of-time compiled CPU binary, the gpu tools don't
@@ -84,6 +86,8 @@ class ExecutableRunOptions {
DeviceAssignment* device_assignment);
const DeviceAssignment* device_assignment() const;
+ string ToString() const;
+
private:
DeviceMemoryAllocator* allocator_ = nullptr;
int device_ordinal_ = -1;
@@ -94,6 +98,9 @@ class ExecutableRunOptions {
ExecutionProfile* execution_profile_ = nullptr;
};
+std::ostream& operator<<(std::ostream& out,
+ const ExecutableRunOptions& options);
+
} // namespace xla
#endif // TENSORFLOW_COMPILER_XLA_EXECUTABLE_RUN_OPTIONS_H_