diff options
author | 2016-09-07 15:04:38 -0800 | |
---|---|---|
committer | 2016-09-07 16:18:18 -0700 | |
commit | 4f09e634703d48a1487cf8c13fd3b0dc5c971e1e (patch) | |
tree | fddb4eeefaa4433f7134fe626dd6306aeba316de | |
parent | 575b85c39e3d50a0cf5f8f56f8acfb4f8da266b1 (diff) |
Update generated Python Op docs.
Change: 132492196
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] * <b>`input`</b>: A `Tensor` or `SparseTensor`. * <b>`name`</b>: A name for the operation (optional). +* <b>`out_type`</b>: (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 * <b>`input`</b>: A `Tensor` or `SparseTensor`. * <b>`name`</b>: A name for the operation (optional). +* <b>`out_type`</b>: (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] * <b>`input`</b>: A `Tensor` or `SparseTensor`. * <b>`name`</b>: A name for the operation (optional). +* <b>`out_type`</b>: (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`). * <b>`logits`</b>: Unscaled log probabilities. * <b>`labels`</b>: Each row `labels[i]` must be a valid probability distribution. +* <b>`dim`</b>: The class dimension. Defaulted to -1 which is the last dimension. * <b>`name`</b>: 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 * <b>`input`</b>: A `Tensor` or `SparseTensor`. * <b>`name`</b>: A name for the operation (optional). +* <b>`out_type`</b>: (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`). * <b>`logits`</b>: Unscaled log probabilities. * <b>`labels`</b>: Each row `labels[i]` must be a valid probability distribution. +* <b>`dim`</b>: The class dimension. Defaulted to -1 which is the last dimension. * <b>`name`</b>: A name for the operation (optional). ##### Returns: |