histogram#
- deepinv.physics.functional.histogram(x, bins=10, low=None, upp=None, **kwargs)[source]#
Computes the histogram of a tensor.
This is a
torch
implementation ofnumpy.histogram
.- Parameters:
x (torch.Tensor) – A tensor,
(*,)
.bins (int) – The number of bins.
low (float) – The lower bound. If
low
isNone
the min ofx
is used instead.upp (float) – The upper bound. If
upp
isNone
the max ofx
is used instead.kwargs – Keyword arguments passed to
histogramdd
.
- Return torch.Tensor:
The histogram
- Return type: