ApproximateEqual
tensorflow C++ API
tensorflow::ops::ApproximateEqual
Returns the truth value of abs(x-y) < tolerance element-wise
Summary
Arguments:
- scope: A Scope object
Returns:
Output
: The z tensor.
Constructor
- ApproximateEqual(const ::tensorflow::Scope & scope, ::tensorflow::Input x,::tensorflow::Input y,const ApproximateEqual::Attrs & attrs).
Public attributes
- tensorflow::Output z.
ApproximateEqualblock
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.
- ApproximateEqual::Attrs attrs : Input attrs value. ex) tolerance_=1e-05f;
Return:
- Output z: Output object of ApproximateEqual class object.
Result:
- std::vector(Tensor) product_result : Returned object of executed result by calling session.