@Operator public final class SetSize extends PrimitiveOp implements Operand<Integer>
Input `set` is a `SparseTensor` represented by `set_indices`, `set_values`, and `set_shape`. The last dimension contains values in a set, duplicates are allowed but ignored.
If `validate_indices` is `True`, this op validates the order and range of `set` indices.
Modifier and Type | Class and Description |
---|---|
static class |
SetSize.Options
Optional attributes for
SetSize |
operation
Modifier and Type | Method and Description |
---|---|
Output<Integer> |
asOutput()
Returns the symbolic handle of a tensor.
|
static <T> SetSize |
create(Scope scope,
Operand<Long> setIndices,
Operand<T> setValues,
Operand<Long> setShape,
SetSize.Options... options)
Factory method to create a class wrapping a new SetSize operation.
|
Output<Integer> |
size()
For `set` ranked `n`, this is a `Tensor` with rank `n-1`, and the same 1st
`n-1` dimensions as `set`.
|
static SetSize.Options |
validateIndices(Boolean validateIndices) |
equals, hashCode, op, toString
public static <T> SetSize create(Scope scope, Operand<Long> setIndices, Operand<T> setValues, Operand<Long> setShape, SetSize.Options... options)
scope
- current scopesetIndices
- 2D `Tensor`, indices of a `SparseTensor`.setValues
- 1D `Tensor`, values of a `SparseTensor`.setShape
- 1D `Tensor`, shape of a `SparseTensor`.options
- carries optional attributes valuespublic static SetSize.Options validateIndices(Boolean validateIndices)
validateIndices
- public Output<Integer> size()
public Output<Integer> asOutput()
Operand
Inputs to TensorFlow operations are outputs of another TensorFlow operation. This method is used to obtain a symbolic handle that represents the computation of the input.
asOutput
in interface Operand<Integer>
OperationBuilder.addInput(Output)
Copyright © 2022. All rights reserved.