Class SparseToSparseSetOperation<T extends TType>
- All Implemented Interfaces:
Op
SparseTensor inputs.
See SetOperationOp::SetOperationFromContext for values of set_operation.
If validate_indices is True, sparse.SparseToSparseSetOperation validates the
order and range of set1 and set2 indices.
Input set1 is a SparseTensor represented by set1_indices, set1_values,
and set1_shape. For set1 ranked n, 1st n-1 dimensions must be the same
as set2. Dimension n contains values in a set, duplicates are allowed but
ignored.
Input set2 is a SparseTensor represented by set2_indices, set2_values,
and set2_shape. For set2 ranked n, 1st n-1 dimensions must be the same
as set1. Dimension n contains values in a set, duplicates are allowed but
ignored.
If validate_indices is True, this op validates the order and range of set1
and set2 indices.
Output result is a SparseTensor represented by result_indices,
result_values, and result_shape. For set1 and set2 ranked n, this
has rank n and the same 1st n-1 dimensions as set1 and set2. The nth
dimension contains the result of set_operation applied to the corresponding
[0...n-1] dimension of set.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSparseToSparseSetOperation.Inputs<T extends TType>static classOptional attributes forSparseToSparseSetOperation -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of this op, as known by TensorFlow core engine -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends TType>
SparseToSparseSetOperation<T> create(Scope scope, Operand<TInt64> set1Indices, Operand<T> set1Values, Operand<TInt64> set1Shape, Operand<TInt64> set2Indices, Operand<T> set2Values, Operand<TInt64> set2Shape, String setOperation, SparseToSparseSetOperation.Options... options) Factory method to create a class wrapping a new SparseToSparseSetOperation operation.Gets resultIndices. 2D indices of aSparseTensor.Gets resultShape. 1DTensorshape of aSparseTensor.Gets resultValues. 1D values of aSparseTensor.validateIndices(Boolean validateIndices) Sets the validateIndices option.
-
Field Details
-
OP_NAME
The name of this op, as known by TensorFlow core engine- See Also:
-
-
Constructor Details
-
SparseToSparseSetOperation
-
-
Method Details
-
create
@Endpoint(describeByClass=true) public static <T extends TType> SparseToSparseSetOperation<T> create(Scope scope, Operand<TInt64> set1Indices, Operand<T> set1Values, Operand<TInt64> set1Shape, Operand<TInt64> set2Indices, Operand<T> set2Values, Operand<TInt64> set2Shape, String setOperation, SparseToSparseSetOperation.Options... options) Factory method to create a class wrapping a new SparseToSparseSetOperation operation.- Type Parameters:
T- data type forSparseToSparseSetOperationoutput and operands- Parameters:
scope- current scopeset1Indices- 2DTensor, indices of aSparseTensor. Must be in row-major order.set1Values- 1DTensor, values of aSparseTensor. Must be in row-major order.set1Shape- 1DTensor, shape of aSparseTensor.set1_shape[0...n-1]must be the same asset2_shape[0...n-1],set1_shape[n]is the max set size across0...n-1dimensions.set2Indices- 2DTensor, indices of aSparseTensor. Must be in row-major order.set2Values- 1DTensor, values of aSparseTensor. Must be in row-major order.set2Shape- 1DTensor, shape of aSparseTensor.set2_shape[0...n-1]must be the same asset1_shape[0...n-1],set2_shape[n]is the max set size across0...n-1dimensions.setOperation- The value of the setOperation attributeoptions- carries optional attribute values- Returns:
- a new instance of SparseToSparseSetOperation
-
validateIndices
Sets the validateIndices option.- Parameters:
validateIndices- the validateIndices option- Returns:
- this Options instance.
-
resultIndices
-
resultValues
-
resultShape
-