T - data type for resultValues() outputOp@Operator(group="sparse") public final class DenseToDenseSetOperation<T> extends PrimitiveOp
See SetOperationOp::SetOperationFromContext for values of `set_operation`.
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`.
| Modifier and Type | Class | Description |
|---|---|---|
static class |
DenseToDenseSetOperation.Options |
Optional attributes for
DenseToDenseSetOperation |
operation| Modifier and Type | Method | Description |
|---|---|---|
static <T> DenseToDenseSetOperation<T> |
create(Scope scope,
Operand<T> set1,
Operand<T> set2,
java.lang.String setOperation,
DenseToDenseSetOperation.Options... options) |
Factory method to create a class to wrap a new DenseToDenseSetOperation operation to the graph.
|
Output<java.lang.Long> |
resultIndices() |
2D indices of a `SparseTensor`.
|
Output<java.lang.Long> |
resultShape() |
1D `Tensor` shape of a `SparseTensor`.
|
Output<T> |
resultValues() |
1D values of a `SparseTensor`.
|
static DenseToDenseSetOperation.Options |
validateIndices(java.lang.Boolean validateIndices) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitequals, hashCode, toStringpublic static <T> DenseToDenseSetOperation<T> create(Scope scope, Operand<T> set1, Operand<T> set2, java.lang.String setOperation, DenseToDenseSetOperation.Options... options)
scope - current graph scopeset1 - `Tensor` with rank `n`. 1st `n-1` dimensions must be the same as `set2`.
Dimension `n` contains values in a set, duplicates are allowed but ignored.set2 - `Tensor` with rank `n`. 1st `n-1` dimensions must be the same as `set1`.
Dimension `n` contains values in a set, duplicates are allowed but ignored.setOperation - options - carries optional attributes valuespublic static DenseToDenseSetOperation.Options validateIndices(java.lang.Boolean validateIndices)
validateIndices - public Output<java.lang.Long> resultIndices()
public Output<java.lang.Long> resultShape()