aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Justin Lebar <jlebar@google.com>2018-05-29 11:19:19 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-05-29 11:25:54 -0700
commit06fd5e9cfb56725c998aae90940154511411342d (patch)
treeab0de5d937f9fcf0a0eeb1d85c24580a76003783
parent799b13d16d8229a87422545eedefd79298ac2cf3 (diff)
[XLA] Clarify that options passed to LocalService override legacy_flags values.
PiperOrigin-RevId: 198426696
-rw-r--r--tensorflow/compiler/xla/client/local_client.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tensorflow/compiler/xla/client/local_client.h b/tensorflow/compiler/xla/client/local_client.h
index d63d4ec7f3..3f23e52fc2 100644
--- a/tensorflow/compiler/xla/client/local_client.h
+++ b/tensorflow/compiler/xla/client/local_client.h
@@ -58,12 +58,18 @@ class LocalExecutable {
// Validates that the given arguments and options satisfy various constraints
// of the computation.
+ //
+ // The given ExecutableRunOptions override any values from legacy_flags
+ // (TF_XLA_FLAGS environment variable).
Status ValidateExecutionOptions(
const tensorflow::gtl::ArraySlice<const ShapedBuffer*> arguments,
const ExecutableRunOptions& run_options, const Backend& backend);
// Records the computation in a SessionModule proto with the arguments used to
// invoke it, and the result. Enabled by flag: --tla_dump_executions_to.
+ //
+ // The given ServiceExecutableRunOptions override any values from legacy_flags
+ // (TF_XLA_FLAGS environment variable).
StatusOr<ScopedShapedBuffer> ExecuteAndDump(
const ServiceExecutableRunOptions* run_options,
const tensorflow::gtl::ArraySlice<const ShapedBuffer*> arguments);
@@ -109,6 +115,9 @@ class LocalClient : public Client {
// Build and return a LocalExecutable object. The executable is compiled using
// the given XlaComputation, argument layouts and options.
+ //
+ // The given ExecutableBuildOptions override any values from legacy_flags
+ // (TF_XLA_FLAGS environment variable).
StatusOr<std::unique_ptr<LocalExecutable>> Compile(
const XlaComputation& computation,
const tensorflow::gtl::ArraySlice<const Shape*> argument_layouts,