Pow
tensorflow C++ API
Computes the power of one value to another.
Summary
Given a tensorx
and a tensory
, this operation computes x^y for corresponding elements inx
andy
. For example:
``` tensor 'x' is [[2, 2]], [3, 3]]
tensor 'y' is [[8, 16], [2, 3]]
tf.pow(x, y) ==> [[256, 65536], [9, 27]] ```
Arguments:
- scope: A Scope object
Returns:
Output
: The z tensor.
Constructor
- Pow(const ::tensorflow::Scope & scope, ::tensorflow::Input x, ::tensorflow::Input y).
Public attributes
- tensorflow::Output z.
Pow 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 x:connect Input node.
- Input y:connect Input node.
Return:
- Output z: Output object of Pow class object.
Result:
- std::vector(Tensor) product_result : Returned object of executed result by calling session.