Typedef torch::nn::functional::KLDivFuncOptions¶
Defined in File loss.h
Typedef Documentation¶
-
using
torch::nn::functional
::
KLDivFuncOptions
= KLDivLossOptions¶ Options for
torch::nn::functional::kl_div
.See the documentation for
torch::nn::KLDivLossOptions
class to learn what arguments are supported.Example:
namespace F = torch::nn::functional; F::kl_div(input, target, F::KLDivFuncOptions().reduction(torch::kNone).log_target(false));