Skip to content

Commit

Permalink
Merge pull request #58 from lan-qing/master
Browse files Browse the repository at this point in the history
Update BBBConv.py
  • Loading branch information
kumar-shridhar authored Sep 27, 2020
2 parents 16e2462 + 3f5aa4e commit 6ece34b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layers/BBB_LRT/BBBConv.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def reset_parameters(self):
self.bias_mu.data.normal_(*self.posterior_mu_initial)
self.bias_rho.data.normal_(*self.posterior_rho_initial)

def forward(self, x):
def forward(self, x, sample=True):

self.W_sigma = torch.log1p(torch.exp(self.W_rho))
if self.use_bias:
Expand Down

0 comments on commit 6ece34b

Please sign in to comment.