| View source on GitHub | 
Returns the element-wise min of two SparseTensors.
tf.sparse.minimum(
    sp_a, sp_b, name=None
)
  Assumes the two SparseTensors have the same shape, i.e., no broadcasting.
sp_zero = tf.sparse.SparseTensor([[0]], [0], [7])
sp_one = tf.sparse.SparseTensor([[1]], [1], [7])
res = tf.sparse.minimum(sp_zero, sp_one)
res.indices
<tf.Tensor: shape=(2, 1), dtype=int64, numpy=
array([[0],
       [1]])>
res.values
<tf.Tensor: shape=(2,), dtype=int32, numpy=array([0, 0], dtype=int32)>
res.dense_shape
<tf.Tensor: shape=(1,), dtype=int64, numpy=array([7])>
  
| Args | |
|---|---|
| sp_a | a SparseTensoroperand whose dtype is real, and indices lexicographically ordered. | 
| sp_b | the other SparseTensoroperand with the same requirements (and the same shape). | 
| name | optional name of the operation. | 
| Returns | |
|---|---|
| output | the output SparseTensor. | 
    © 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
    https://www.tensorflow.org/versions/r2.9/api_docs/python/tf/sparse/minimum