T
- data type for product()
output@Operator(group="linalg") public final class Cross<T extends Number> extends PrimitiveOp implements Operand<T>
`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.
operation
Modifier and Type | Method and Description |
---|---|
Output<T> |
asOutput()
Returns the symbolic handle of a tensor.
|
static <T extends Number> |
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`.
|
equals, hashCode, op, toString
public static <T extends Number> Cross<T> create(Scope scope, Operand<T> a, Operand<T> b)
scope
- current scopea
- A tensor containing 3-element vectors.b
- Another tensor, of same type and shape as `a`.public Output<T> asOutput()
Operand
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.
asOutput
in interface Operand<T extends Number>
OperationBuilder.addInput(Output)
Copyright © 2022. All rights reserved.