Question about torch.histc function

Why does

torch.histc(torch.tensor([1,3.,3,3]), bins=1, min=3, max=3)

output [4] instead of [3]?

You are using bins=1, which will return a single bin containing all values.
Since you are using 4 input values, the returned bin will contain the count of 4.

Shouldn’t the value 1 be ignored since min=3?