Cross

Stay organized with collections Save and categorize content based on your preferences.
public final class Cross

Compute the pairwise cross product.

`a` and `b` must be the same shape; they can either be simple 3-element vectors, or any shape where the innermost dimension is 3. In the latter case, each pair of corresponding 3-element vectors is cross-multiplied independently.

Constants

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

Public Methods

Output<T>
asOutput()
Returns the symbolic handle of the tensor.
static <T extends TNumber> Cross<T>
create(Scope scope, Operand<T> a, Operand<T> b)
Factory method to create a class wrapping a new Cross operation.
Output<T>
product()
Pairwise cross product of the vectors in `a` and `b`.

Inherited Methods

Constants

public static final String OP_NAME

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

Constant Value: "Cross"

Public Methods

public Output<T> asOutput ()

Returns the symbolic handle of the tensor.

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.

public static Cross<T> create (Scope scope, Operand<T> a, Operand<T> b)

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

Parameters
scope current scope
a A tensor containing 3-element vectors.
b Another tensor, of same type and shape as `a`.
Returns
  • a new instance of Cross

public Output<T> product ()

Pairwise cross product of the vectors in `a` and `b`.