Betainc
tensorflow C++ API
Counts the number of occurrences of each value in an integer array.
Summary
Outputs a vector with lengthsizeand the same dtype asweights. Ifweightsare empty, then indexistores the number of times the valueiis counted inarr. Ifweightsare non-empty, then indexistores the sum of the value inweightsat each index where the corresponding value inarrisi.
Values inarroutside of the range [0, size) are ignored.
Arguments:
- scope: A Scope object
- arr: int32
Tensor. - size: non-negative int32 scalar
Tensor. - weights: is an int32, int64, float32, or float64
Tensorwith the same shape asarr, or a length-0Tensor, in which case it acts as all weights equal to 1.
Returns:
Output: 1DTensorwith length equal tosize. The counts or summed weights for each value in the range [0, size).
Constructor
- Bincount(const ::tensorflow::Scope & scope, ::tensorflow::Input a, ::tensorflow::Input b, ::tensorflow::Input x).
Public attributes
- tensorflow::Output z.
Bincount 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 arr :connect Input node.
- Input size :connect Input node.
- Input weights :connect Input node.
Return:
- Output z : Output object of Bincount class object.
Result:
- std::vector(Tensor) product_result : Returned object of executed result by calling session.
Using Method
