Skip to content

Commit

Permalink
fix issue#24 #24
Browse files Browse the repository at this point in the history
Signed-off-by: Ranganath Krishnan <[email protected]>
  • Loading branch information
ranganathkrishnan committed Jan 2, 2024
1 parent 6677599 commit 1180b87
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions bayesian_torch/layers/flipout_layers/conv_flipout.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ def forward(self, x, return_kl=True):
eps_kernel = self.qint_quant[2](eps_kernel) # random variable
delta_kernel =self.qint_quant[3](delta_kernel) # multiply activation

self.kl = kl
# returning outputs + perturbations
if return_kl:
return outputs + perturbed_outputs, kl
Expand Down Expand Up @@ -632,7 +631,6 @@ def forward(self, x, return_kl=True):
eps_kernel = self.qint_quant[2](eps_kernel) # random variable
delta_kernel =self.qint_quant[3](delta_kernel) # multiply activation

self.kl = kl
# returning outputs + perturbations
if return_kl:
return outputs + perturbed_outputs, kl
Expand Down Expand Up @@ -827,7 +825,6 @@ def forward(self, x, return_kl=True):
eps_kernel = self.qint_quant[2](eps_kernel) # random variable
delta_kernel =self.qint_quant[3](delta_kernel) # multiply activation

self.kl = kl
# returning outputs + perturbations
if return_kl:
return outputs + perturbed_outputs, kl
Expand Down Expand Up @@ -1027,7 +1024,6 @@ def forward(self, x, return_kl=True):
eps_kernel = self.qint_quant[2](eps_kernel) # random variable
delta_kernel =self.qint_quant[3](delta_kernel) # multiply activation

self.kl = kl
# returning outputs + perturbations
if return_kl:
return outputs + perturbed_outputs, kl
Expand Down Expand Up @@ -1226,7 +1222,6 @@ def forward(self, x, return_kl=True):
eps_kernel = self.qint_quant[2](eps_kernel) # random variable
delta_kernel =self.qint_quant[3](delta_kernel) # multiply activation

self.kl = kl
# returning outputs + perturbations
if return_kl:
return outputs + perturbed_outputs, kl
Expand Down

0 comments on commit 1180b87

Please sign in to comment.