Outputs a vector with length size and the same dtype as weights.
If weights are empty, then index i stores the number of times the value
i is counted in x. If weights are non-empty, then index i stores the
sum of the value in weights at each index where the corresponding value in
x is i.
Values in x outside of the range [0, size) are ignored.
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.