Where's the implementation of KL divergence loss function?

Simple question but I was not able to find it due to ridiculous Github search and friends.

2 Likes

pytorch/functional.py at master · pytorch/pytorch (github.com), line 2549.

2 Likes

Should be in C++ I guess, else in Python.

It’s line 2627.

2 Likes

Oups, RIP my eyes then. :joy: