From 4f09e634703d48a1487cf8c13fd3b0dc5c971e1e Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Wed, 7 Sep 2016 15:04:38 -0800 Subject: Update generated Python Op docs. Change: 132492196 --- tensorflow/g3doc/api_docs/python/array_ops.md | 12 ++++++++---- .../api_docs/python/functions_and_classes/shard3/tf.shape.md | 6 ++++-- .../shard7/tf.nn.softmax_cross_entropy_with_logits.md | 3 ++- .../api_docs/python/functions_and_classes/shard9/tf.size.md | 6 ++++-- tensorflow/g3doc/api_docs/python/nn.md | 3 ++- 5 files changed, 20 insertions(+), 10 deletions(-) diff --git a/tensorflow/g3doc/api_docs/python/array_ops.md b/tensorflow/g3doc/api_docs/python/array_ops.md index cf0166aafb..c3139a1973 100644 --- a/tensorflow/g3doc/api_docs/python/array_ops.md +++ b/tensorflow/g3doc/api_docs/python/array_ops.md @@ -208,7 +208,7 @@ of a tensor and change the shape of a tensor. - - - -### `tf.shape(input, name=None)` {#shape} +### `tf.shape(input, name=None, out_type=tf.int32)` {#shape} Returns the shape of a tensor. @@ -226,15 +226,17 @@ shape(t) ==> [2, 2, 3] * `input`: A `Tensor` or `SparseTensor`. * `name`: A name for the operation (optional). +* `out_type`: (Optional) The specified output type of the operation + (`int32` or `int64`). Defaults to tf.int32. ##### Returns: - A `Tensor` of type `int32`. + A `Tensor` of type `out_type`. - - - -### `tf.size(input, name=None)` {#size} +### `tf.size(input, name=None, out_type=tf.int32)` {#size} Returns the size of a tensor. @@ -253,10 +255,12 @@ size(t) ==> 12 * `input`: A `Tensor` or `SparseTensor`. * `name`: A name for the operation (optional). +* `out_type`: (Optional) The specified output type of the operation + (`int32` or `int64`). Defaults to tf.int32. ##### Returns: - A `Tensor` of type `int32`. + A `Tensor` of type `out_type`. Defaults to tf.int32. - - - diff --git a/tensorflow/g3doc/api_docs/python/functions_and_classes/shard3/tf.shape.md b/tensorflow/g3doc/api_docs/python/functions_and_classes/shard3/tf.shape.md index 4cbbcf4ab1..450ce8ae0d 100644 --- a/tensorflow/g3doc/api_docs/python/functions_and_classes/shard3/tf.shape.md +++ b/tensorflow/g3doc/api_docs/python/functions_and_classes/shard3/tf.shape.md @@ -1,4 +1,4 @@ -### `tf.shape(input, name=None)` {#shape} +### `tf.shape(input, name=None, out_type=tf.int32)` {#shape} Returns the shape of a tensor. @@ -16,8 +16,10 @@ shape(t) ==> [2, 2, 3] * `input`: A `Tensor` or `SparseTensor`. * `name`: A name for the operation (optional). +* `out_type`: (Optional) The specified output type of the operation + (`int32` or `int64`). Defaults to tf.int32. ##### Returns: - A `Tensor` of type `int32`. + A `Tensor` of type `out_type`. diff --git a/tensorflow/g3doc/api_docs/python/functions_and_classes/shard7/tf.nn.softmax_cross_entropy_with_logits.md b/tensorflow/g3doc/api_docs/python/functions_and_classes/shard7/tf.nn.softmax_cross_entropy_with_logits.md index f6ee36f193..6c93f735eb 100644 --- a/tensorflow/g3doc/api_docs/python/functions_and_classes/shard7/tf.nn.softmax_cross_entropy_with_logits.md +++ b/tensorflow/g3doc/api_docs/python/functions_and_classes/shard7/tf.nn.softmax_cross_entropy_with_logits.md @@ -1,4 +1,4 @@ -### `tf.nn.softmax_cross_entropy_with_logits(logits, labels, name=None)` {#softmax_cross_entropy_with_logits} +### `tf.nn.softmax_cross_entropy_with_logits(logits, labels, dim=-1, name=None)` {#softmax_cross_entropy_with_logits} Computes softmax cross entropy between `logits` and `labels`. @@ -27,6 +27,7 @@ and the same dtype (either `float16`, `float32`, or `float64`). * `logits`: Unscaled log probabilities. * `labels`: Each row `labels[i]` must be a valid probability distribution. +* `dim`: The class dimension. Defaulted to -1 which is the last dimension. * `name`: A name for the operation (optional). ##### Returns: diff --git a/tensorflow/g3doc/api_docs/python/functions_and_classes/shard9/tf.size.md b/tensorflow/g3doc/api_docs/python/functions_and_classes/shard9/tf.size.md index 43745d75cd..3df6d4cb2f 100644 --- a/tensorflow/g3doc/api_docs/python/functions_and_classes/shard9/tf.size.md +++ b/tensorflow/g3doc/api_docs/python/functions_and_classes/shard9/tf.size.md @@ -1,4 +1,4 @@ -### `tf.size(input, name=None)` {#size} +### `tf.size(input, name=None, out_type=tf.int32)` {#size} Returns the size of a tensor. @@ -17,8 +17,10 @@ size(t) ==> 12 * `input`: A `Tensor` or `SparseTensor`. * `name`: A name for the operation (optional). +* `out_type`: (Optional) The specified output type of the operation + (`int32` or `int64`). Defaults to tf.int32. ##### Returns: - A `Tensor` of type `int32`. + A `Tensor` of type `out_type`. Defaults to tf.int32. diff --git a/tensorflow/g3doc/api_docs/python/nn.md b/tensorflow/g3doc/api_docs/python/nn.md index 22fb0fdabb..d1f9521e3a 100644 --- a/tensorflow/g3doc/api_docs/python/nn.md +++ b/tensorflow/g3doc/api_docs/python/nn.md @@ -1471,7 +1471,7 @@ For each batch `i` and class `j` we have - - - -### `tf.nn.softmax_cross_entropy_with_logits(logits, labels, name=None)` {#softmax_cross_entropy_with_logits} +### `tf.nn.softmax_cross_entropy_with_logits(logits, labels, dim=-1, name=None)` {#softmax_cross_entropy_with_logits} Computes softmax cross entropy between `logits` and `labels`. @@ -1500,6 +1500,7 @@ and the same dtype (either `float16`, `float32`, or `float64`). * `logits`: Unscaled log probabilities. * `labels`: Each row `labels[i]` must be a valid probability distribution. +* `dim`: The class dimension. Defaulted to -1 which is the last dimension. * `name`: A name for the operation (optional). ##### Returns: -- cgit v1.2.3