Implementation of set operations
Nested Classes
enum | SetsOps.Operation | Enumeration containing the string operation values to be passed to the TensorFlow Sparse Ops
function ERROR(/SparseOps#denseToDenseSetOperation)
|
Public Constructors
SetsOps()
|
Public Methods
static <T extends TNumber> Operand<T> |
difference(Ops tf, Operand<T> a, Operand<T> b, boolean aMinusB)
Computes set difference of elements in last dimension of
a and b . |
static <T extends TNumber> Operand<T> |
difference(Ops tf, Operand<T> a, Operand<T> b)
Computes set difference of elements in last dimension of
a and b with
aMinusB set to true. |
static <T extends TNumber> Operand<T> |
intersection(Ops tf, Operand<T> a, Operand<T> b)
Computes set intersection of elements in last dimension of
a and b . |
static <T extends TNumber> Operand<T> |
setOperation(Ops tf, Operand<T> a, Operand<T> b, SetsOps.Operation setOperation)
Compute set operation of elements in last dimension of
a and b . |
static <T extends TNumber> Operand<T> |
Inherited Methods
Public Constructors
public SetsOps ()
Public Methods
public static Operand<T> difference (Ops tf, Operand<T> a, Operand<T> b, boolean aMinusB)
Computes set difference of elements in last dimension of a
and b
.
All but the last dimension of a
and b
must match
Parameters
tf | the TensorFlow Ops |
---|---|
a | The first operand representing set a |
b | The other operand representing set b |
aMinusB | whether to subtract b from a, vs vice versa. |
Returns
- An Operand with the same rank as
a
andb
, and all but the last dimension the * same. Elements along the last dimension contain the results of the set operation.
public static Operand<T> difference (Ops tf, Operand<T> a, Operand<T> b)
Computes set difference of elements in last dimension of a
and b
with
aMinusB
set to true.
All but the last dimension of a
and b
must match
Parameters
tf | the TensorFlow Ops |
---|---|
a | The first operand representing set a |
b | The other operand representing set b |
Returns
- An Operand with the same rank as
a
andb
, and all but the last dimension the * same. Elements along the last dimension contain the results of the set operation.
public static Operand<T> intersection (Ops tf, Operand<T> a, Operand<T> b)
Computes set intersection of elements in last dimension of a
and b
.
Parameters
tf | the TensorFlow Ops |
---|---|
a | The first operand representing set a |
b | The other operand representing set b |
Returns
- An Operand with the same rank as
a
andb
, and all but the last dimension the * same. Elements along the last dimension contain the results of the set operation.
public static Operand<T> setOperation (Ops tf, Operand<T> a, Operand<T> b, SetsOps.Operation setOperation)
Compute set operation of elements in last dimension of a
and b
.
Parameters
tf | the TensorFlow Ops |
---|---|
a | The first set operation operand |
b | The other et operation operand |
setOperation | The set operation to perform, SetsOps.Operation . |
Returns
- An Operand with the same rank as
a
andb
, and all but the last dimension the same. Elements along the last dimension contain the results of the set operation.
public static Operand<T> union (Ops tf, Operand<T> a, Operand<T> b)
Computes set union of elements in last dimension of a
and b
.
Parameters
tf | the TensorFlow Ops |
---|---|
a | The first operand representing set a |
b | The other operand representing set b |
Returns
- An Operand with the same rank as
a
andb
, and all but the last dimension the * same. Elements along the last dimension contain the results of the set operation.