From ed55257ee28ca84953401b4bf65ee45cead98b91 Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Fri, 1 Jul 2016 16:36:18 -0800 Subject: Update generated Python Op docs. Change: 126463785 --- .../shard1/tf.sparse_minimum.md | 28 ++++++++++ .../shard5/tf.sparse_maximum.md | 28 ++++++++++ tensorflow/g3doc/api_docs/python/index.md | 2 + tensorflow/g3doc/api_docs/python/sparse_ops.md | 62 ++++++++++++++++++++++ 4 files changed, 120 insertions(+) create mode 100644 tensorflow/g3doc/api_docs/python/functions_and_classes/shard1/tf.sparse_minimum.md create mode 100644 tensorflow/g3doc/api_docs/python/functions_and_classes/shard5/tf.sparse_maximum.md diff --git a/tensorflow/g3doc/api_docs/python/functions_and_classes/shard1/tf.sparse_minimum.md b/tensorflow/g3doc/api_docs/python/functions_and_classes/shard1/tf.sparse_minimum.md new file mode 100644 index 0000000000..4419f736b9 --- /dev/null +++ b/tensorflow/g3doc/api_docs/python/functions_and_classes/shard1/tf.sparse_minimum.md @@ -0,0 +1,28 @@ +### `tf.sparse_minimum(sp_a, sp_b, name=None)` {#sparse_minimum} + +Returns the element-wise min of two SparseTensors. + +Assumes the two SparseTensors have the same shape, i.e., no broadcasting. +Example: + +```python +sp_zero = ops.SparseTensor([[0]], [0], [7]) +sp_one = ops.SparseTensor([[1]], [1], [7]) +res = tf.sparse_minimum(sp_zero, sp_one).eval() +# "res" should be equal to SparseTensor([[0], [1]], [0, 0], [7]). +``` + +##### Args: + + +* `sp_a`: a `SparseTensor` operand whose dtype is real, and indices + lexicographically ordered. +* `sp_b`: the other `SparseTensor` operand with the same requirements (and the + same shape). +* `name`: optional name of the operation. + +##### Returns: + + +* `output`: the output SparseTensor. + diff --git a/tensorflow/g3doc/api_docs/python/functions_and_classes/shard5/tf.sparse_maximum.md b/tensorflow/g3doc/api_docs/python/functions_and_classes/shard5/tf.sparse_maximum.md new file mode 100644 index 0000000000..b934c3b1cd --- /dev/null +++ b/tensorflow/g3doc/api_docs/python/functions_and_classes/shard5/tf.sparse_maximum.md @@ -0,0 +1,28 @@ +### `tf.sparse_maximum(sp_a, sp_b, name=None)` {#sparse_maximum} + +Returns the element-wise max of two SparseTensors. + +Assumes the two SparseTensors have the same shape, i.e., no broadcasting. +Example: + +```python +sp_zero = ops.SparseTensor([[0]], [0], [7]) +sp_one = ops.SparseTensor([[1]], [1], [7]) +res = tf.sparse_maximum(sp_zero, sp_one).eval() +# "res" should be equal to SparseTensor([[0], [1]], [0, 1], [7]). +``` + +##### Args: + + +* `sp_a`: a `SparseTensor` operand whose dtype is real, and indices + lexicographically ordered. +* `sp_b`: the other `SparseTensor` operand with the same requirements (and the + same shape). +* `name`: optional name of the operation. + +##### Returns: + + +* `output`: the output SparseTensor. + diff --git a/tensorflow/g3doc/api_docs/python/index.md b/tensorflow/g3doc/api_docs/python/index.md index b2ac90e7e4..27432ab6dd 100644 --- a/tensorflow/g3doc/api_docs/python/index.md +++ b/tensorflow/g3doc/api_docs/python/index.md @@ -367,7 +367,9 @@ * [`sparse_add`](../../api_docs/python/sparse_ops.md#sparse_add) * [`sparse_concat`](../../api_docs/python/sparse_ops.md#sparse_concat) * [`sparse_fill_empty_rows`](../../api_docs/python/sparse_ops.md#sparse_fill_empty_rows) + * [`sparse_maximum`](../../api_docs/python/sparse_ops.md#sparse_maximum) * [`sparse_merge`](../../api_docs/python/sparse_ops.md#sparse_merge) + * [`sparse_minimum`](../../api_docs/python/sparse_ops.md#sparse_minimum) * [`sparse_reduce_sum`](../../api_docs/python/sparse_ops.md#sparse_reduce_sum) * [`sparse_reorder`](../../api_docs/python/sparse_ops.md#sparse_reorder) * [`sparse_reset_shape`](../../api_docs/python/sparse_ops.md#sparse_reset_shape) diff --git a/tensorflow/g3doc/api_docs/python/sparse_ops.md b/tensorflow/g3doc/api_docs/python/sparse_ops.md index 6781eadef4..1665420b5b 100644 --- a/tensorflow/g3doc/api_docs/python/sparse_ops.md +++ b/tensorflow/g3doc/api_docs/python/sparse_ops.md @@ -1155,3 +1155,65 @@ B dense [k, n] return A*B +- - - + +### `tf.sparse_maximum(sp_a, sp_b, name=None)` {#sparse_maximum} + +Returns the element-wise max of two SparseTensors. + +Assumes the two SparseTensors have the same shape, i.e., no broadcasting. +Example: + +```python +sp_zero = ops.SparseTensor([[0]], [0], [7]) +sp_one = ops.SparseTensor([[1]], [1], [7]) +res = tf.sparse_maximum(sp_zero, sp_one).eval() +# "res" should be equal to SparseTensor([[0], [1]], [0, 1], [7]). +``` + +##### Args: + + +* `sp_a`: a `SparseTensor` operand whose dtype is real, and indices + lexicographically ordered. +* `sp_b`: the other `SparseTensor` operand with the same requirements (and the + same shape). +* `name`: optional name of the operation. + +##### Returns: + + +* `output`: the output SparseTensor. + + +- - - + +### `tf.sparse_minimum(sp_a, sp_b, name=None)` {#sparse_minimum} + +Returns the element-wise min of two SparseTensors. + +Assumes the two SparseTensors have the same shape, i.e., no broadcasting. +Example: + +```python +sp_zero = ops.SparseTensor([[0]], [0], [7]) +sp_one = ops.SparseTensor([[1]], [1], [7]) +res = tf.sparse_minimum(sp_zero, sp_one).eval() +# "res" should be equal to SparseTensor([[0], [1]], [0, 0], [7]). +``` + +##### Args: + + +* `sp_a`: a `SparseTensor` operand whose dtype is real, and indices + lexicographically ordered. +* `sp_b`: the other `SparseTensor` operand with the same requirements (and the + same shape). +* `name`: optional name of the operation. + +##### Returns: + + +* `output`: the output SparseTensor. + + -- cgit v1.2.3