Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tingis committed Mar 17, 2020
1 parent 0d14168 commit 3185b08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyfilter/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.6.9'
__version__ = '0.6.10'
6 changes: 3 additions & 3 deletions pyfilter/inference/varapprox/meanfield.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ def get_parameters(self):
return self._mean, self._std

def initialize(self, parameters, *args):
self._mean = torch.zeros(sum(p.c_numel() for p in parameters))
self._std = torch.ones_like(self._mean)
stacked = stacker(parameters, lambda u: u.t_values)

stacked = stacker(parameters)
self._mean = torch.zeros_like(stacked.concated)
self._std = torch.ones_like(self._mean)

for p, msk in zip(parameters, stacked.mask):
try:
Expand Down

0 comments on commit 3185b08

Please sign in to comment.