Betainc
tensorflow C++ API
Counts the number of occurrences of each value in an integer array.
Summary
Outputs a vector with lengthsize
and the same dtype asweights
. Ifweights
are empty, then indexi
stores the number of times the valuei
is counted inarr
. Ifweights
are non-empty, then indexi
stores the sum of the value inweights
at each index where the corresponding value inarr
isi
.
Values inarr
outside 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
Tensor
with the same shape asarr
, or a length-0Tensor
, in which case it acts as all weights equal to 1.
Returns:
Output
: 1DTensor
with 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.