W3cubDocs

/TensorFlow C++

tensorflow::ops::SparseSparseMinimum

#include <sparse_ops.h>

Returns the element-wise min of two SparseTensors.

Summary

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

Arguments:

  • scope: A Scope object
  • a_indices: 2-D. N x R matrix with the indices of non-empty values in a SparseTensor, in the canonical lexicographic ordering.
  • a_values: 1-D. N non-empty values corresponding to a_indices.
  • a_shape: 1-D. Shape of the input SparseTensor.
  • b_indices: counterpart to a_indices for the other operand.
  • b_values: counterpart to a_values for the other operand; must be of the same dtype.
  • b_shape: counterpart to a_shape for the other operand; the two shapes must be equal.

Returns:

  • Output output_indices: 2-D. The indices of the output SparseTensor.
  • Output output_values: 1-D. The values of the output SparseTensor.
Constructors and Destructors
SparseSparseMinimum(const ::tensorflow::Scope & scope, ::tensorflow::Input a_indices, ::tensorflow::Input a_values, ::tensorflow::Input a_shape, ::tensorflow::Input b_indices, ::tensorflow::Input b_values, ::tensorflow::Input b_shape)
Public attributes
output_indices
output_values

Public attributes

output_indices

::tensorflow::Output output_indices

output_values

::tensorflow::Output output_values

Public functions

SparseSparseMinimum

 SparseSparseMinimum(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input a_indices,
  ::tensorflow::Input a_values,
  ::tensorflow::Input a_shape,
  ::tensorflow::Input b_indices,
  ::tensorflow::Input b_values,
  ::tensorflow::Input b_shape
)

© 2017 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/sparse-sparse-minimum.html