yzhao062 / pytod

TOD: GPU-accelerated Outlier Detection via Tensor Operations
https://arxiv.org/abs/2110.14007
BSD 2-Clause "Simplified" License
173 stars 24 forks source link

Prevent NaNs in basic_operators.histt #7

Open hannesdm opened 1 year ago

hannesdm commented 1 year ago

When a.min() equals a.max() a default range of (-0.5, +0.5) is created around the single value. This follows the numpy.histogram logic.