:github_url: https://github.com/pytorch/pytorch .. _exhale_function_namespacetorch_1_1nn_1_1functional_1a72f789a306d5e694ac984430fb3b405d: Function torch::nn::functional::kl_div ====================================== - Defined in :ref:`file_torch_csrc_api_include_torch_nn_functional_loss.h` Function Documentation ---------------------- .. doxygenfunction:: torch::nn::functional::kl_div(const Tensor&, const Tensor&, const KLDivFuncOptions&)