TruncateDiv
tensorflow C++ API
Returns x / y element-wise for integer types.
Summary
Truncation designates that negative numbers will round fractional quantities toward zero. I.e. -7 / 5 = 1. This matches C semantics but it is different than Python semantics. SeeFloorDiv
for a division function that matches Python Semantics.
Arguments:
- scope: A Scope object
Returns:
Output
: The z tensor.
Constructor
- TruncateDiv(const ::tensorflow::Scope & scope, ::tensorflow::Input x, ::tensorflow::Input y).
Public attributes
- tensorflow::Output z.
TruncateDiv 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 TruncateDiv class object.
Result:
- std::vector(Tensor) product_result : Returned object of executed result by calling session.