Watch keynotes, product sessions, workshops, and more from Google I/O

# tensorflow::ops::Cross

#include <math_ops.h>

Compute the pairwise cross product.

## Summary

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.

Arguments:

• scope: A Scope object
• a: A tensor containing 3-element vectors.
• b: Another tensor, of same type and shape as a.

Returns:

• Output: Pairwise cross product of the vectors in a and b.

### Constructors and Destructors

Cross(const ::tensorflow::Scope & scope, ::tensorflow::Input a, ::tensorflow::Input b)

operation
product

### Public functions

node() const
::tensorflow::Node *
operator::tensorflow::Input() const
operator::tensorflow::Output() const

## Public attributes

### operation

Operation operation

### product

::tensorflow::Output product

## Public functions

### Cross

Cross(
const ::tensorflow::Scope & scope,
::tensorflow::Input a,
::tensorflow::Input b
)

### node

::tensorflow::Node * node() const

### operator::tensorflow::Input

operator::tensorflow::Input() const

### operator::tensorflow::Output

operator::tensorflow::Output() const
[{ "type": "thumb-down", "id": "missingTheInformationINeed", "label":"Missing the information I need" },{ "type": "thumb-down", "id": "tooComplicatedTooManySteps", "label":"Too complicated / too many steps" },{ "type": "thumb-down", "id": "outOfDate", "label":"Out of date" },{ "type": "thumb-down", "id": "samplesCodeIssue", "label":"Samples / code issue" },{ "type": "thumb-down", "id": "otherDown", "label":"Other" }]
[{ "type": "thumb-up", "id": "easyToUnderstand", "label":"Easy to understand" },{ "type": "thumb-up", "id": "solvedMyProblem", "label":"Solved my problem" },{ "type": "thumb-up", "id": "otherUp", "label":"Other" }]