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
sizeand the same dtype asweights.If
weightsare empty, then indexistores the number of times the valueiis counted inx. Ifweightsare non-empty, then indexistores the sum of the value inweightsat each index where the corresponding value inxisi.Values in
xoutside of the range [0, size) are ignored.