W3cubDocs

/TensorFlow C++ 2.9

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.

Args:

  • 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)
Public attributes
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 

© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.9/api_docs/cc/class/tensorflow/ops/cross