diff options
author | A. Unique TensorFlower <nobody@tensorflow.org> | 2016-05-31 02:20:13 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2016-05-31 03:33:20 -0700 |
commit | 9aedaf2b011d90b0e325c738723de2ac3509b9e1 (patch) | |
tree | d5046c9db48f76d1c96ca266a88691baf27defe4 | |
parent | 8100421994fd3e89b31d3605cf9468cca0217ac5 (diff) |
Update generated Python Op docs.
Change: 123625558
-rw-r--r-- | tensorflow/g3doc/api_docs/python/client.md | 35 | ||||
-rw-r--r-- | tensorflow/g3doc/api_docs/python/functions_and_classes/shard8/tf.Session.md | 35 |
2 files changed, 38 insertions, 32 deletions
diff --git a/tensorflow/g3doc/api_docs/python/client.md b/tensorflow/g3doc/api_docs/python/client.md index 9b85ccee1d..baf2f18326 100644 --- a/tensorflow/g3doc/api_docs/python/client.md +++ b/tensorflow/g3doc/api_docs/python/client.md @@ -102,24 +102,25 @@ running the necessary graph fragment to execute every `Operation` and evaluate every `Tensor` in `fetches`, substituting the values in `feed_dict` for the corresponding input values. -The `fetches` argument may be a list of graph elements or a single -graph element, and these determine the return value of this +The `fetches` argument may be a single graph element, a list of +graph elements, or a dictionary whose values are the above. The type of +`fetches` determines the return value of this method. A graph element can be one of the following types: -* If the *i*th element of `fetches` is an - [`Operation`](../../api_docs/python/framework.md#Operation), the *i*th - return value will be `None`. -* If the *i*th element of `fetches` is a - [`Tensor`](../../api_docs/python/framework.md#Tensor), the *i*th return - value will be a numpy ndarray containing the value of that tensor. -* If the *i*th element of `fetches` is a +* If an element of `fetches` is an + [`Operation`](../../api_docs/python/framework.md#Operation), the + corresponding fetched value will be `None`. +* If an element of `fetches` is a + [`Tensor`](../../api_docs/python/framework.md#Tensor), the corresponding + fetched value will be a numpy ndarray containing the value of that tensor. +* If an element of `fetches` is a [`SparseTensor`](../../api_docs/python/sparse_ops.md#SparseTensor), - the *i*th return value will be a + the corresponding fetched value will be a [`SparseTensorValue`](../../api_docs/python/sparse_ops.md#SparseTensorValue) containing the value of that sparse tensor. -* If the *i*th element of `fetches` is produced by a `get_tensor_handle` op, - the *i*th return value will be a numpy ndarray containing the handle of - that tensor. +* If an element of `fetches` is produced by a `get_tensor_handle` op, + the corresponding fetched value will be a numpy ndarray containing the + handle of that tensor. The optional `feed_dict` argument allows the caller to override the value of tensors in the graph. Each key in `feed_dict` can be @@ -151,8 +152,9 @@ collected into this argument and passed back. ##### Args: -* <b>`fetches`</b>: A single graph element, or a list of graph elements - (described above). +* <b>`fetches`</b>: A single graph element, a list of graph elements, + or a dictionary whose values are graph elements or lists of graph + elements (described above). * <b>`feed_dict`</b>: A dictionary that maps graph elements to values (described above). * <b>`options`</b>: A [`RunOptions`] protocol buffer @@ -161,7 +163,8 @@ collected into this argument and passed back. ##### Returns: Either a single value if `fetches` is a single graph element, or - a list of values if `fetches` is a list (described above). + a list of values if `fetches` is a list, or a dictionary with the + same keys as `fetches` if that is a dictionary (described above). ##### Raises: diff --git a/tensorflow/g3doc/api_docs/python/functions_and_classes/shard8/tf.Session.md b/tensorflow/g3doc/api_docs/python/functions_and_classes/shard8/tf.Session.md index 62982698dd..b17b76f977 100644 --- a/tensorflow/g3doc/api_docs/python/functions_and_classes/shard8/tf.Session.md +++ b/tensorflow/g3doc/api_docs/python/functions_and_classes/shard8/tf.Session.md @@ -86,24 +86,25 @@ running the necessary graph fragment to execute every `Operation` and evaluate every `Tensor` in `fetches`, substituting the values in `feed_dict` for the corresponding input values. -The `fetches` argument may be a list of graph elements or a single -graph element, and these determine the return value of this +The `fetches` argument may be a single graph element, a list of +graph elements, or a dictionary whose values are the above. The type of +`fetches` determines the return value of this method. A graph element can be one of the following types: -* If the *i*th element of `fetches` is an - [`Operation`](../../api_docs/python/framework.md#Operation), the *i*th - return value will be `None`. -* If the *i*th element of `fetches` is a - [`Tensor`](../../api_docs/python/framework.md#Tensor), the *i*th return - value will be a numpy ndarray containing the value of that tensor. -* If the *i*th element of `fetches` is a +* If an element of `fetches` is an + [`Operation`](../../api_docs/python/framework.md#Operation), the + corresponding fetched value will be `None`. +* If an element of `fetches` is a + [`Tensor`](../../api_docs/python/framework.md#Tensor), the corresponding + fetched value will be a numpy ndarray containing the value of that tensor. +* If an element of `fetches` is a [`SparseTensor`](../../api_docs/python/sparse_ops.md#SparseTensor), - the *i*th return value will be a + the corresponding fetched value will be a [`SparseTensorValue`](../../api_docs/python/sparse_ops.md#SparseTensorValue) containing the value of that sparse tensor. -* If the *i*th element of `fetches` is produced by a `get_tensor_handle` op, - the *i*th return value will be a numpy ndarray containing the handle of - that tensor. +* If an element of `fetches` is produced by a `get_tensor_handle` op, + the corresponding fetched value will be a numpy ndarray containing the + handle of that tensor. The optional `feed_dict` argument allows the caller to override the value of tensors in the graph. Each key in `feed_dict` can be @@ -135,8 +136,9 @@ collected into this argument and passed back. ##### Args: -* <b>`fetches`</b>: A single graph element, or a list of graph elements - (described above). +* <b>`fetches`</b>: A single graph element, a list of graph elements, + or a dictionary whose values are graph elements or lists of graph + elements (described above). * <b>`feed_dict`</b>: A dictionary that maps graph elements to values (described above). * <b>`options`</b>: A [`RunOptions`] protocol buffer @@ -145,7 +147,8 @@ collected into this argument and passed back. ##### Returns: Either a single value if `fetches` is a single graph element, or - a list of values if `fetches` is a list (described above). + a list of values if `fetches` is a list, or a dictionary with the + same keys as `fetches` if that is a dictionary (described above). ##### Raises: |