T
- data type for resultValues()
output@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 and Description |
---|---|
static class |
DenseToDenseSetOperation.Options
Optional attributes for
DenseToDenseSetOperation |
operation
Modifier and Type | Method and Description |
---|---|
static <T> DenseToDenseSetOperation<T> |
create(Scope scope,
Operand<T> set1,
Operand<T> set2,
String setOperation,
DenseToDenseSetOperation.Options... options)
Factory method to create a class wrapping a new DenseToDenseSetOperation operation.
|
Output<Long> |
resultIndices()
2D indices of a `SparseTensor`.
|
Output<Long> |
resultShape()
1D `Tensor` shape of a `SparseTensor`.
|
Output<T> |
resultValues()
1D values of a `SparseTensor`.
|
static DenseToDenseSetOperation.Options |
validateIndices(Boolean validateIndices) |
equals, hashCode, op, toString
public static <T> DenseToDenseSetOperation<T> create(Scope scope, Operand<T> set1, Operand<T> set2, String setOperation, DenseToDenseSetOperation.Options... options)
scope
- current 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(Boolean validateIndices)
validateIndices
- Copyright © 2022. All rights reserved.