DenseToDenseSetOperation

public final class DenseToDenseSetOperation

Applies set operation along last dimension of 2 `Tensor` inputs.

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`.

Nested Classes

Constants

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

Public Methods

static <T extends TType> DenseToDenseSetOperation<T>
create(Scope scope, Operand<T> set1, Operand<T> set2, String setOperation, Options... options)
Factory method to create a class wrapping a new DenseToDenseSetOperation operation.
Output<TInt64>
resultIndices()
2D indices of a `SparseTensor`.
Output<TInt64>
resultShape()
1D `Tensor` shape of a `SparseTensor`.
Output<T>
resultValues()
1D values of a `SparseTensor`.
static DenseToDenseSetOperation.Options
validateIndices(Boolean validateIndices)

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: "DenseToDenseSetOperation"

Public Methods

public static DenseToDenseSetOperation<T> create (Scope scope, Operand<T> set1, Operand<T> set2, String setOperation, Options... options)

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

Parameters
scope current scope
set1 `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.
options carries optional attributes values
Returns
  • a new instance of DenseToDenseSetOperation

public Output<TInt64> resultIndices ()

2D indices of a `SparseTensor`.

public Output<TInt64> resultShape ()

1D `Tensor` shape of a `SparseTensor`. `result_shape[0...n-1]` is the same as the 1st `n-1` dimensions of `set1` and `set2`, `result_shape[n]` is the max result set size across all `0...n-1` dimensions.

public Output<T> resultValues ()

1D values of a `SparseTensor`.

public static DenseToDenseSetOperation.Options validateIndices (Boolean validateIndices)