Skip to content

Silent Data Corruption in PyTorch

github.com/pytorch
2 pointscarterschonwald1 comment
On HN

Comments

for those here using pytorch, theres some really nasty data corruption for computations that arent using powers of two as the coordinate axes.

in gradient calcs ive had examples with multiple orders of magnitude of remative or absolute error.

The linked pr has a one line fix and repro test I spent some time distilling and tracking down. The dimensions ive been using in my models are almost adversarially good at catching these issues!

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.