Histogram Equalization

If you use torch.histc without specifying min and max, the minimum and maximum values of the data are used.
Would this be sufficient or do you need another method?