KL散度详解
一文搞懂KL散度+信息熵,不懂的话可以看看我的文章
代码
KLDivLoss
参数
参数 | 类型 | 含义 |
---|---|---|
size_average[Deprecated] | bool, optional | the losses are averaged over each loss element in the batch |
reduce [Deprecated] | bool, optional | the losses are averaged or summed over observations for each minibatch depending on |
reduction | string, optional | Specifies the reduction to apply to the output |
log_target [Deprecated] | bool, optional |