Cross
tensorflow C++ API
Compute the pairwise cross product.
Summary
a
andb
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
: The product tensor.
Constructor
- Cross(const ::tensorflow::Scope & scope, ::tensorflow::Input a, ::tensorflow::Input b).
Public attributes
- tensorflow::Output product.
Cross block
Source link : https://github.com/EXPNUNI/enuSpaceTensorflow/blob/master/enuSpaceTensorflow/tf_math.cpp
Argument:
- Scope scope : A Scope object (A scope is generated automatically each page. A scope is not connected.).
- Input a:connect Input node.
- Input b:connect Input node.
Return:
- Output product: Output object of Cross class object.
Result:
- std::vector(Tensor) product_result : Returned object of executed result by calling session.