Class SetOps

java.lang.Object
org.tensorflow.framework.op.SetOps

public class SetOps extends Object
Creates Framework set Operations
  • Method Details

    • difference

      public <T extends TNumber> Operand<T> difference(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

      Type Parameters:
      T - the data type for the sets
      Parameters:
      a - The first operand representing set a
      b - The other operand representing set b
      Returns:
      An Operand with the same rank as a and b, and all but the last dimension the * same. Elements along the last dimension contain the results of the set operation.
    • difference

      public <T extends TNumber> Operand<T> difference(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

      Type Parameters:
      T - the data type for the sets
      Parameters:
      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 and b, and all but the last dimension the * same. Elements along the last dimension contain the results of the set operation.
    • union

      public <T extends TNumber> Operand<T> union(Operand<T> a, Operand<T> b)
      Computes set union of elements in last dimension of a and b.
      Type Parameters:
      T - the data type for the sets
      Parameters:
      a - The first operand representing set a
      b - The other operand representing set b
      Returns:
      An Operand with the same rank as a and b, and all but the last dimension the * same. Elements along the last dimension contain the results of the set operation.
    • intersection

      public <T extends TNumber> Operand<T> intersection(Operand<T> a, Operand<T> b)
      Computes set intersection of elements in last dimension of a and b.
      Type Parameters:
      T - the data type for the sets
      Parameters:
      a - The first operand representing set a
      b - The other operand representing set b
      Returns:
      An Operand with the same rank as a and b, and all but the last dimension the * same. Elements along the last dimension contain the results of the set operation.