powered by
Histc
(Tensor) the input tensor.
(int) number of histogram bins
(int) lower end of the range (inclusive)
(int) upper end of the range (inclusive)
(Tensor, optional) the output tensor.
Computes the histogram of a tensor.
The elements are sorted into equal width bins between min and max. If min and max are both zero, the minimum and maximum values of the data are used.
min
max
# NOT RUN { if (torch_is_installed()) { torch_histc(torch_tensor(c(1., 2, 1)), bins=4, min=0, max=3) } # }
Run the code above in your browser using DataLab