From 89edbedc143952f2ce245f251f5d244db08ed1cc Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Tue, 15 Nov 2016 10:37:19 -0800 Subject: Update generated Python Op docs. Change: 139218176 --- tensorflow/g3doc/api_docs/python/array_ops.md | 64 ++++++++++++++++++++++ .../shard2/tf.test.TestCase.md | 2 +- .../functions_and_classes/shard5/tf.reverse_v2.md | 61 +++++++++++++++++++++ tensorflow/g3doc/api_docs/python/index.md | 1 + tensorflow/g3doc/api_docs/python/test.md | 2 +- 5 files changed, 128 insertions(+), 2 deletions(-) create mode 100644 tensorflow/g3doc/api_docs/python/functions_and_classes/shard5/tf.reverse_v2.md diff --git a/tensorflow/g3doc/api_docs/python/array_ops.md b/tensorflow/g3doc/api_docs/python/array_ops.md index a3b8075349..0a68522cb6 100644 --- a/tensorflow/g3doc/api_docs/python/array_ops.md +++ b/tensorflow/g3doc/api_docs/python/array_ops.md @@ -1288,6 +1288,70 @@ reverse(t, dims) ==> [[[[8, 9, 10, 11], A `Tensor`. Has the same type as `tensor`. The same shape as `tensor`. +- - - + +### `tf.reverse_v2(tensor, axis, name=None)` {#reverse_v2} + +Reverses specific dimensions of a tensor. + +Given a `tensor`, and a `int32` tensor `axis` representing the set of +dimensions of `tensor` to reverse. This operation reverses each dimension +`i` for which there exists `j` s.t. `axis[j] == i`. + +`tensor` can have up to 8 dimensions. The number of dimensions specified +in `axis` may be 0 or more entries. If an index is specified more than +once, a InvalidArgument error is raised. + +For example: + +```prettyprint +# tensor 't' is [[[[ 0, 1, 2, 3], +# [ 4, 5, 6, 7], +# [ 8, 9, 10, 11]], +# [[12, 13, 14, 15], +# [16, 17, 18, 19], +# [20, 21, 22, 23]]]] +# tensor 't' shape is [1, 2, 3, 4] + +# 'dims' is [3] or 'dims' is -1 +reverse(t, dims) ==> [[[[ 3, 2, 1, 0], + [ 7, 6, 5, 4], + [ 11, 10, 9, 8]], + [[15, 14, 13, 12], + [19, 18, 17, 16], + [23, 22, 21, 20]]]] + +# 'dims' is '[1]' (or 'dims' is '[-3]') +reverse(t, dims) ==> [[[[12, 13, 14, 15], + [16, 17, 18, 19], + [20, 21, 22, 23] + [[ 0, 1, 2, 3], + [ 4, 5, 6, 7], + [ 8, 9, 10, 11]]]] + +# 'dims' is '[2]' (or 'dims' is '[-2]') +reverse(t, dims) ==> [[[[8, 9, 10, 11], + [4, 5, 6, 7], + [0, 1, 2, 3]] + [[20, 21, 22, 23], + [16, 17, 18, 19], + [12, 13, 14, 15]]]] +``` + +##### Args: + + +* `tensor`: A `Tensor`. Must be one of the following types: `uint8`, `int8`, `int32`, `int64`, `bool`, `half`, `float32`, `float64`, `complex64`, `complex128`. + Up to 8-D. +* `axis`: A `Tensor`. Must be one of the following types: `int32`, `int64`. + 1-D. The indices of the dimensions to reverse. +* `name`: A name for the operation (optional). + +##### Returns: + + A `Tensor`. Has the same type as `tensor`. The same shape as `tensor`. + + - - - ### `tf.transpose(a, perm=None, name='transpose')` {#transpose} diff --git a/tensorflow/g3doc/api_docs/python/functions_and_classes/shard2/tf.test.TestCase.md b/tensorflow/g3doc/api_docs/python/functions_and_classes/shard2/tf.test.TestCase.md index 30fb2b3c9f..63a7439275 100644 --- a/tensorflow/g3doc/api_docs/python/functions_and_classes/shard2/tf.test.TestCase.md +++ b/tensorflow/g3doc/api_docs/python/functions_and_classes/shard2/tf.test.TestCase.md @@ -683,7 +683,7 @@ then compares them using self._AssertProtoEqual(). - - - -#### `tf.test.TestCase.assertProtoEqualsVersion(expected, actual, producer=15, min_consumer=0)` {#TestCase.assertProtoEqualsVersion} +#### `tf.test.TestCase.assertProtoEqualsVersion(expected, actual, producer=17, min_consumer=0)` {#TestCase.assertProtoEqualsVersion} diff --git a/tensorflow/g3doc/api_docs/python/functions_and_classes/shard5/tf.reverse_v2.md b/tensorflow/g3doc/api_docs/python/functions_and_classes/shard5/tf.reverse_v2.md new file mode 100644 index 0000000000..48d0e68e20 --- /dev/null +++ b/tensorflow/g3doc/api_docs/python/functions_and_classes/shard5/tf.reverse_v2.md @@ -0,0 +1,61 @@ +### `tf.reverse_v2(tensor, axis, name=None)` {#reverse_v2} + +Reverses specific dimensions of a tensor. + +Given a `tensor`, and a `int32` tensor `axis` representing the set of +dimensions of `tensor` to reverse. This operation reverses each dimension +`i` for which there exists `j` s.t. `axis[j] == i`. + +`tensor` can have up to 8 dimensions. The number of dimensions specified +in `axis` may be 0 or more entries. If an index is specified more than +once, a InvalidArgument error is raised. + +For example: + +```prettyprint +# tensor 't' is [[[[ 0, 1, 2, 3], +# [ 4, 5, 6, 7], +# [ 8, 9, 10, 11]], +# [[12, 13, 14, 15], +# [16, 17, 18, 19], +# [20, 21, 22, 23]]]] +# tensor 't' shape is [1, 2, 3, 4] + +# 'dims' is [3] or 'dims' is -1 +reverse(t, dims) ==> [[[[ 3, 2, 1, 0], + [ 7, 6, 5, 4], + [ 11, 10, 9, 8]], + [[15, 14, 13, 12], + [19, 18, 17, 16], + [23, 22, 21, 20]]]] + +# 'dims' is '[1]' (or 'dims' is '[-3]') +reverse(t, dims) ==> [[[[12, 13, 14, 15], + [16, 17, 18, 19], + [20, 21, 22, 23] + [[ 0, 1, 2, 3], + [ 4, 5, 6, 7], + [ 8, 9, 10, 11]]]] + +# 'dims' is '[2]' (or 'dims' is '[-2]') +reverse(t, dims) ==> [[[[8, 9, 10, 11], + [4, 5, 6, 7], + [0, 1, 2, 3]] + [[20, 21, 22, 23], + [16, 17, 18, 19], + [12, 13, 14, 15]]]] +``` + +##### Args: + + +* `tensor`: A `Tensor`. Must be one of the following types: `uint8`, `int8`, `int32`, `int64`, `bool`, `half`, `float32`, `float64`, `complex64`, `complex128`. + Up to 8-D. +* `axis`: A `Tensor`. Must be one of the following types: `int32`, `int64`. + 1-D. The indices of the dimensions to reverse. +* `name`: A name for the operation (optional). + +##### Returns: + + A `Tensor`. Has the same type as `tensor`. The same shape as `tensor`. + diff --git a/tensorflow/g3doc/api_docs/python/index.md b/tensorflow/g3doc/api_docs/python/index.md index f5b810f0da..b66dd9ef51 100644 --- a/tensorflow/g3doc/api_docs/python/index.md +++ b/tensorflow/g3doc/api_docs/python/index.md @@ -161,6 +161,7 @@ * [`reshape`](../../api_docs/python/array_ops.md#reshape) * [`reverse`](../../api_docs/python/array_ops.md#reverse) * [`reverse_sequence`](../../api_docs/python/array_ops.md#reverse_sequence) + * [`reverse_v2`](../../api_docs/python/array_ops.md#reverse_v2) * [`saturate_cast`](../../api_docs/python/array_ops.md#saturate_cast) * [`scatter_nd`](../../api_docs/python/array_ops.md#scatter_nd) * [`sequence_mask`](../../api_docs/python/array_ops.md#sequence_mask) diff --git a/tensorflow/g3doc/api_docs/python/test.md b/tensorflow/g3doc/api_docs/python/test.md index ff0f7b0b69..6c730ba5ea 100644 --- a/tensorflow/g3doc/api_docs/python/test.md +++ b/tensorflow/g3doc/api_docs/python/test.md @@ -723,7 +723,7 @@ then compares them using self._AssertProtoEqual(). - - - -#### `tf.test.TestCase.assertProtoEqualsVersion(expected, actual, producer=15, min_consumer=0)` {#TestCase.assertProtoEqualsVersion} +#### `tf.test.TestCase.assertProtoEqualsVersion(expected, actual, producer=17, min_consumer=0)` {#TestCase.assertProtoEqualsVersion} -- cgit v1.2.3