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