# tf.sparse.minimum

<br />

|---|---|
| [![](https://www.tensorflow.org/images/tf_logo_32px.png) TensorFlow 2 version](https://www.tensorflow.org/api_docs/python/tf/sparse/minimum) | [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/ops/sparse_ops.py#L2502-L2537) |

Returns the element-wise min of two SparseTensors.

#### View aliases


**Main aliases**

\`tf.sparse_minimum\`
**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.sparse.minimum`](https://www.tensorflow.org/api_docs/python/tf/sparse/minimum), [`tf.compat.v1.sparse_minimum`](https://www.tensorflow.org/api_docs/python/tf/sparse/minimum), \`tf.compat.v2.sparse.minimum\`

<br />

    tf.sparse.minimum(
        sp_a, sp_b, name=None
    )

Assumes the two SparseTensors have the same shape, i.e., no broadcasting.
Example:

    sp_zero = sparse_tensor.SparseTensor([[0]], [0], [7])
    sp_one = sparse_tensor.SparseTensor([[1]], [1], [7])
    res = tf.sparse.minimum(sp_zero, sp_one).eval()
    # "res" should be equal to SparseTensor([[0], [1]], [0, 0], [7]).

<br />

<br />

<br />

| ## 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. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| `output` | the output SparseTensor. |

<br />