diff options
author | 2018-08-30 10:14:22 -0700 | |
---|---|---|
committer | 2018-08-30 10:23:30 -0700 | |
commit | ee89fccfd1db25563dadd0e3b4336612d7c52e0a (patch) | |
tree | 83e0034a75e66a60a97d675238e93ce2278d3c7a /tensorflow/core/api_def | |
parent | ed248787e7045cc484fd7cff3d2447c5c776aa84 (diff) |
TensorListScatter and TensorListGather
This closes one API hole between TensorList and TensorArray
PiperOrigin-RevId: 210932049
Diffstat (limited to 'tensorflow/core/api_def')
-rw-r--r-- | tensorflow/core/api_def/base_api/api_def_TensorListGather.pbtxt | 12 | ||||
-rw-r--r-- | tensorflow/core/api_def/base_api/api_def_TensorListScatter.pbtxt | 14 |
2 files changed, 26 insertions, 0 deletions
diff --git a/tensorflow/core/api_def/base_api/api_def_TensorListGather.pbtxt b/tensorflow/core/api_def/base_api/api_def_TensorListGather.pbtxt new file mode 100644 index 0000000000..3022fccb1e --- /dev/null +++ b/tensorflow/core/api_def/base_api/api_def_TensorListGather.pbtxt @@ -0,0 +1,12 @@ +op { + graph_op_name: "TensorListGather" + summary: "Creates a Tensor by indexing into the TensorList." + description: <<END +Each row in the produced Tensor corresponds to the element in the TensorList +specified by the given index (see `tf.gather`). + +input_handle: The input tensor list. +indices: The indices used to index into the list. +values: The tensor. +END +} diff --git a/tensorflow/core/api_def/base_api/api_def_TensorListScatter.pbtxt b/tensorflow/core/api_def/base_api/api_def_TensorListScatter.pbtxt new file mode 100644 index 0000000000..35194b353e --- /dev/null +++ b/tensorflow/core/api_def/base_api/api_def_TensorListScatter.pbtxt @@ -0,0 +1,14 @@ +op { + graph_op_name: "TensorListScatter" + summary: "Creates a TensorList by indexing into a Tensor." + description: <<END +Each member of the TensorList corresponds to one row of the input tensor, +specified by the given index (see `tf.gather`). + +tensor: The input tensor. +indices: The indices used to index into the list. +element_shape: The shape of the elements in the list (can be less specified than + the shape of the tensor). +output_handle: The TensorList. +END +} |