The input int tensor, rank 1 or rank 2.
The weights tensor, must have the same shape as x, or a length-0 Tensor, in which case it acts as all weights equal to 1.
Non-negative integer.
Optional
binaryOutput: booleanOptional. Whether the kernel should count the appearance or number of occurrences. Defaults to False.
Generated using TypeDoc
Outputs a vector with length
size
and the same dtype asweights
.If
weights
are empty, then indexi
stores the number of times the valuei
is counted inx
. Ifweights
are non-empty, then indexi
stores the sum of the value inweights
at each index where the corresponding value inx
isi
.Values in
x
outside of the range [0, size) are ignored.