Class SetOps
java.lang.Object
org.tensorflow.framework.op.SetOps
Creates Framework set Operations
-
Method Summary
Modifier and TypeMethodDescriptiondifference(Operand<T> a, Operand<T> b) Computes set difference of elements in last dimension ofaandbwithaMinusBset to true.difference(Operand<T> a, Operand<T> b, boolean aMinusB) Computes set difference of elements in last dimension ofaandb.intersection(Operand<T> a, Operand<T> b) Computes set intersection of elements in last dimension ofaandb.Computes set union of elements in last dimension ofaandb.
-
Method Details
-
difference
Computes set difference of elements in last dimension ofaandbwithaMinusBset to true.All but the last dimension of
aandbmust match- Type Parameters:
T- the data type for the sets- Parameters:
a- The first operand representing setab- The other operand representing setb- Returns:
- An Operand with the same rank as
aandb, and all but the last dimension the * same. Elements along the last dimension contain the results of the set operation.
-
difference
Computes set difference of elements in last dimension ofaandb.All but the last dimension of
aandbmust match- Type Parameters:
T- the data type for the sets- Parameters:
a- The first operand representing setab- The other operand representing setbaMinusB- whether to subtract b from a, vs vice versa.- Returns:
- An Operand with the same rank as
aandb, and all but the last dimension the * same. Elements along the last dimension contain the results of the set operation.
-
union
Computes set union of elements in last dimension ofaandb.- Type Parameters:
T- the data type for the sets- Parameters:
a- The first operand representing setab- The other operand representing setb- Returns:
- An Operand with the same rank as
aandb, and all but the last dimension the * same. Elements along the last dimension contain the results of the set operation.
-
intersection
Computes set intersection of elements in last dimension ofaandb.- Type Parameters:
T- the data type for the sets- Parameters:
a- The first operand representing setab- The other operand representing setb- Returns:
- An Operand with the same rank as
aandb, and all but the last dimension the * same. Elements along the last dimension contain the results of the set operation.
-