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.
Elements lower than min and higher than max and NaN
elements are ignored.
out (Tensor, optional) – the output tensor.
Histogram represented as a tensor
Example:
>>> torch.histc(torch.tensor([1., 2, 1]), bins=4, min=0, max=3) tensor([ 0., 2., 1., 0.])
Access comprehensive developer documentation for PyTorch
View Docs TutorialsGet in-depth tutorials for beginners and advanced developers
View Tutorials ResourcesFind development resources and get your questions answered
View ResourcesRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4