Skip to content

Commit

Permalink
no need to store prototype local model trace
Browse files Browse the repository at this point in the history
  • Loading branch information
fehiepsi committed Jun 29, 2023
1 parent cbc7b3b commit 063b604
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions numpyro/infer/autoguide.py
Original file line number Diff line number Diff line change
Expand Up @@ -1259,10 +1259,6 @@ def _setup_prototype(self, *args, **kwargs):
self.local_guide(*local_args, **local_kwargs)
self.prototype_local_guide_trace = tr

with handlers.block(), handlers.trace() as tr, handlers.seed(rng_seed=0):
self.local_model(*local_args, **local_kwargs)
self.prototype_local_model_trace = tr

def __call__(self, *args, **kwargs):
if self.prototype_trace is None:
# run model to inspect the model structure
Expand Down

0 comments on commit 063b604

Please sign in to comment.