From 9c0302760d482abda065750ddee603e23354cede Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Wed, 30 Aug 2017 01:09:11 -0700 Subject: [PATCH] Update ops-related pbtxt files. PiperOrigin-RevId: 166962648 --- .../core/ops/compat/ops_history.v1.pbtxt | 24 +++++++++++++++++ tensorflow/core/ops/ops.pbtxt | 27 +++++++++++++++++++ 2 files changed, 51 insertions(+) diff --git a/tensorflow/core/ops/compat/ops_history.v1.pbtxt b/tensorflow/core/ops/compat/ops_history.v1.pbtxt index 8a481fadf8e..ad290d123e5 100644 --- a/tensorflow/core/ops/compat/ops_history.v1.pbtxt +++ b/tensorflow/core/ops/compat/ops_history.v1.pbtxt @@ -22394,6 +22394,18 @@ op { } is_stateful: true } +op { + name: "RestoreIterator" + input_arg { + name: "iterator" + type: DT_RESOURCE + } + input_arg { + name: "path" + type: DT_STRING + } + is_stateful: true +} op { name: "RestoreSlice" input_arg { @@ -23117,6 +23129,18 @@ op { } is_stateful: true } +op { + name: "SaveIterator" + input_arg { + name: "iterator" + type: DT_RESOURCE + } + input_arg { + name: "path" + type: DT_STRING + } + is_stateful: true +} op { name: "SaveSlices" input_arg { diff --git a/tensorflow/core/ops/ops.pbtxt b/tensorflow/core/ops/ops.pbtxt index f5723807f69..13356e1d8a6 100644 --- a/tensorflow/core/ops/ops.pbtxt +++ b/tensorflow/core/ops/ops.pbtxt @@ -22093,6 +22093,19 @@ op { description: "Reads a tensor stored in one or several files. If there are several files (for\ninstance because a tensor was saved as slices), `file_pattern` may contain\nwildcard symbols (`*` and `?`) in the filename portion only, not in the\ndirectory portion.\n\nIf a `file_pattern` matches several files, `preferred_shard` can be used to hint\nin which file the requested tensor is likely to be found. This op will first\nopen the file at index `preferred_shard` in the list of matching files and try\nto restore tensors from that file. Only if some tensors or tensor slices are\nnot found in that first file, then the Op opens all the files. Setting\n`preferred_shard` to match the value passed as the `shard` input\nof a matching `Save` Op may speed up Restore. This attribute only affects\nperformance, not correctness. The default value -1 means files are processed in\norder.\n\nSee also `RestoreSlice`." is_stateful: true } +op { + name: "RestoreIterator" + input_arg { + name: "iterator" + type: DT_RESOURCE + } + input_arg { + name: "path" + type: DT_STRING + } + summary: "Restores the state of the `iterator` from the checkpoint saved at `path` using \"SaveIterator\"." + is_stateful: true +} op { name: "RestoreSlice" input_arg { @@ -22653,6 +22666,20 @@ op { description: "The size of `tensor_names` must match the number of tensors in `data`. `data[i]`\nis written to `filename` with name `tensor_names[i]`.\n\nSee also `SaveSlices`." is_stateful: true } +op { + name: "SaveIterator" + input_arg { + name: "iterator" + type: DT_RESOURCE + } + input_arg { + name: "path" + type: DT_STRING + } + summary: "Saves the state of the `iterator` at `path`." + description: "This state can be restored using \"RestoreIterator\"." + is_stateful: true +} op { name: "SaveSlices" input_arg {