Skip to content

Commit

Permalink
Preserve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzo committed Dec 18, 2023
1 parent 9151f43 commit 6d4a030
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pyro/poutine/subsample_messenger.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,11 @@ def _reset(self):

def _process_message(self, msg):
frame = CondIndepStackFrame(
self.name, self.dim, self.subsample_size, self.counter, self.size
name=self.name,
dim=self.dim,
size=self.subsample_size,
counter=self.counter,
full_size=self.size, # used for param initialization
)
msg["cond_indep_stack"] = (frame,) + msg["cond_indep_stack"]
if isinstance(self.size, torch.Tensor) or isinstance(
Expand Down

0 comments on commit 6d4a030

Please sign in to comment.