diff options
author | Derek Murray <mrry@google.com> | 2018-04-06 17:02:16 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-04-06 17:04:47 -0700 |
commit | 49c6489368ea98feb3259d54a10c6fdfd01caf44 (patch) | |
tree | c7290544262ac61f151ea636c05278c68678b4bf /tensorflow/core/protobuf | |
parent | dbfc3d5d364a61dcf8b2867aee6afd6dc387b34b (diff) |
Add CallableOptions.tensor_connection for feeding a tensor to another tensor.
PiperOrigin-RevId: 191960845
Diffstat (limited to 'tensorflow/core/protobuf')
-rw-r--r-- | tensorflow/core/protobuf/config.proto | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/tensorflow/core/protobuf/config.proto b/tensorflow/core/protobuf/config.proto index a3557e4721..c1a0075b64 100644 --- a/tensorflow/core/protobuf/config.proto +++ b/tensorflow/core/protobuf/config.proto @@ -409,6 +409,17 @@ message RunMetadata { repeated GraphDef partition_graphs = 3; } +// Defines a connection between two tensors in a `GraphDef`. +message TensorConnection { + // A tensor name. The value of this tensor will be substituted for + // the tensor named in `to_tensor`. + string from_tensor = 1; + + // A tensor name. The value of this tensor will be bound to the + // value of the tensor named in `from_tensor`. + string to_tensor = 2; +} + // Defines a subgraph in another `GraphDef` as a set of feed points and nodes // to be fetched or executed. // @@ -429,5 +440,10 @@ message CallableOptions { // Options that will be applied to each run. RunOptions run_options = 4; - // Next: 5 + // Tensors to be connected in the callable. Each TensorConnection denotes + // a pair of tensors in the graph, between which an edge will be created + // in the callable. + repeated TensorConnection tensor_connection = 5; + + // Next: 6 } |