Skip to content

Commit

Permalink
Fix long line
Browse files Browse the repository at this point in the history
  • Loading branch information
borchero committed Feb 5, 2021
1 parent 4ea13c7 commit 10f38e0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pycave/bayes/_internal/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ def log_normal(x, means, covars, covariance_type):

if covariance_type == 'diag-shared': # shared diagonal covariance
num_means = means.size(0)
precisions = precisions.view(1, num_features).expand(
num_means, num_features
)
precisions = precisions.view(1, num_features).expand(num_means, num_features)
elif covariance_type == 'diag': # diagonal covariance
cov_det = (-precisions.log()).sum(1)
x_prob = torch.matmul(x * x, precisions.t())
Expand Down

0 comments on commit 10f38e0

Please sign in to comment.