Could you remove the round operation and check the out tensor directly?
Since you might not use deterministic algorithms, it would be interesting to see if small numerical errors could move the rounded output.