Solved by albanD in post #5 
              
              
                Ho right you have negative values as well  
I’m afraid this is going to be hard to do as fast as round without reimplementing an efficient C kernel for it. 
In [12]: x = torch.tensor([-0.6, -0.5, -0.4, 0.4, 0.5, 0.6])

In [13]: %timeit x.round()
56.9 µs ± 7.92 µs per loop (mean ± std. dev. of 7 runs…