SparseSparseMaximum

public final class SparseSparseMaximum

Returns the element-wise max of two SparseTensors.

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

Constants

String OP_NAME The name of this op, as known by TensorFlow core engine

Public Methods

static <T extends TNumber> SparseSparseMaximum<T>
create(Scope scope, Operand<TInt64> aIndices, Operand<T> aValues, Operand<TInt64> aShape, Operand<TInt64> bIndices, Operand<T> bValues, Operand<TInt64> bShape)
Factory method to create a class wrapping a new SparseSparseMaximum operation.
Output<TInt64>
outputIndices()
2-D.
Output<T>
outputValues()
1-D.

Inherited Methods

org.tensorflow.op.RawOp
final boolean
equals(Object obj)
final int
Operation
op()
Return this unit of computation as a single Operation.
final String
boolean
equals(Object arg0)
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()
org.tensorflow.op.Op
abstract ExecutionEnvironment
env()
Return the execution environment this op was created in.
abstract Operation
op()
Return this unit of computation as a single Operation.

Constants

public static final String OP_NAME

The name of this op, as known by TensorFlow core engine

Constant Value: "SparseSparseMaximum"

Public Methods

public static SparseSparseMaximum<T> create (Scope scope, Operand<TInt64> aIndices, Operand<T> aValues, Operand<TInt64> aShape, Operand<TInt64> bIndices, Operand<T> bValues, Operand<TInt64> bShape)

Factory method to create a class wrapping a new SparseSparseMaximum operation.

Parameters
scope current scope
aIndices 2-D. `N x R` matrix with the indices of non-empty values in a SparseTensor, in the canonical lexicographic ordering.
aValues 1-D. `N` non-empty values corresponding to `a_indices`.
aShape 1-D. Shape of the input SparseTensor.
bIndices counterpart to `a_indices` for the other operand.
bValues counterpart to `a_values` for the other operand; must be of the same dtype.
bShape counterpart to `a_shape` for the other operand; the two shapes must be equal.
Returns
  • a new instance of SparseSparseMaximum

public Output<TInt64> outputIndices ()

2-D. The indices of the output SparseTensor.

public Output<T> outputValues ()

1-D. The values of the output SparseTensor.