Sign
tensorflow C++ API
Returns an element-wise indication of the sign of a number.
Summary
y = sign(x) = -1
ifx < 0
; 0 ifx == 0
; 1 ifx > 0
.
For complex numbers,y = sign(x) = x / |x|
ifx != 0
, otherwisey = 0
.
Arguments:
- scope: A Scope object
Returns:
Output
: The y tensor.
Constructor
- Sign(const ::tensorflow::Scope & scope, ::tensorflow::Input x)
Public attributes
- tensorflow::Output y.
Sign 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.
Return:
- Output output: Output object of Sign class object.
Result:
- std::vector(Tensor) product_result : Returned object of executed result by calling session.