diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2018-05-22 13:49:08 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-05-22 13:51:22 -0700 |
commit | 9d2c6ff2a542b9bd89b42e3b88e6299eae9bdcc4 (patch) | |
tree | 301c1026d384945565a96226d66180e1e950b3b3 /tensorflow/core/protobuf | |
parent | 4d134bad0403ebb5722144d8f859a04a5f21efc2 (diff) |
Collective Ops Part 7
Complete just enough of the core implementation to run
multi-device collectives locally within a single process.
Interfaces are still private and not availble for general use.
PiperOrigin-RevId: 197617132
Diffstat (limited to 'tensorflow/core/protobuf')
-rw-r--r-- | tensorflow/core/protobuf/config.proto | 25 | ||||
-rw-r--r-- | tensorflow/core/protobuf/worker.proto | 8 |
2 files changed, 32 insertions, 1 deletions
diff --git a/tensorflow/core/protobuf/config.proto b/tensorflow/core/protobuf/config.proto index 6cd067afcb..410ad227e9 100644 --- a/tensorflow/core/protobuf/config.proto +++ b/tensorflow/core/protobuf/config.proto @@ -379,7 +379,17 @@ message ConfigProto { // shared with other sessions. bool isolate_session_state = 15; - // Next: 16 + // Everything inside Experimental is subject to change and is not subject + // to API stability guarantees in + // https://www.tensorflow.org/programmers_guide/version_compat. + message Experimental { + // Task name for group resolution. + string collective_group_leader = 1; + }; + + Experimental experimental = 16; + + // Next: 17 }; // Options for a single Run() call. @@ -414,6 +424,19 @@ message RunOptions { // Enabling this option can slow down the Run() call. bool report_tensor_allocations_upon_oom = 7; + // Everything inside Experimental is subject to change and is not subject + // to API stability guarantees in + // https://www.tensorflow.org/programmers_guide/version_compat. + message Experimental { + // If non-zero, declares that this graph is going to use collective + // ops and must synchronize step_ids with any other graph with this + // same group_key value (in a distributed computation where tasks + // run disjoint graphs). + int64 collective_graph_key = 1; + }; + + Experimental experimental = 8; + reserved 4; } diff --git a/tensorflow/core/protobuf/worker.proto b/tensorflow/core/protobuf/worker.proto index 1cb84ca41e..b400638df1 100644 --- a/tensorflow/core/protobuf/worker.proto +++ b/tensorflow/core/protobuf/worker.proto @@ -122,6 +122,14 @@ message RegisterGraphRequest { // Field(s) used by TensorFlow Debugger (tfdbg). DebugOptions debug_options = 5; + + // If graph_def contains any collective ops this must be a positive + // integer used to coordinate execution with other graphs. All + // graphs in a distributed execution with the same + // collective_graph_key will coordinate to use the same step_id + // concurrently so that BufRendezvous entries will make the correct + // values accessible. + int64 collective_graph_key = 7; } message RegisterGraphResponse { |