You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,4 +38,8 @@ import torchbnn
38
38
* **convert_model(nonbayes_to_bayes, bayes_to_nonbayes)** is also changed with prior_sigma instead of prior_log_sigma.
39
39
***Modules(BayesLinear, BayesConv2d, BayesBatchNorm2d)** : Base initialization method is changed to the method of Adv-BNN from the original torch method.
40
40
***functional** : **bayesian_kl_loss** is changed similar to ones in **torch.functional**
41
-
***loss** : **BKLLoss** is added based on bayesian_kl_loss similar to ones in **torch.loss**
41
+
***loss** : **BKLLoss** is added based on bayesian_kl_loss similar to ones in **torch.loss**
42
+
43
+
### Version 0.3
44
+
***bayesian_kl_loss/BKLLoss returns tensor.Tensor([0]) as default**
45
+
* In the previous version, bayesian_kl_loss/BKLLoss returns 0 of int type if there is no Bayesian layers. However, considering all torch loss returns tensor and .item() is used to make them to int type, they are changed to return tensor.Tensor([0]) if there is no Bayesian layers.
0 commit comments