An unofficial, read-only Hacker News reader. Join the beta →

The KL Divergence Is Never Negative, Except in PyTorch (opens external site)

97 points by Anon84 3 days ago | arxiv.org | 40 comments on HN

View full thread · View on Hacker News

Comment thread (1)

  1. I've been using pytorch since the beginning, and it's pretty rare that I'd reach for the inbuilt KL-divergence. Not because I don't use it, but because there are so many ways to evaluate it, and I'll often hand-roll the one that seems easiest given the project. I suspect others would do the same thing.

    And yeah, ML is pretty resistant to this sort of bug.