Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
options backprop and add_prev were broken
  • Loading branch information
sokrypton authored Sep 5, 2022
1 parent 8632eb7 commit 02de39b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions colabdesign/af/design.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def _recycle(self, model_params, backprop=True):
if mode in ["backprop","add_prev"]:

# recycles compiled into model, only need single-pass
num_recycles = self.opt["num_recycles"] = self._runner.config.model.num_recycle
num_recycles = self.opt["num_recycles"] = self._cfg.model.num_recycle
aux = self._single(model_params, backprop)

else:
Expand Down Expand Up @@ -457,4 +457,4 @@ def template_predesign(self, iters=100, soft=True, hard=False,
self.set_opt(hard=hard, soft=soft, dropout=dropout, temp=temp)
for i in range(iters):
self.opt["template"]["dropout"] = (i+1)/iters
self.step(**kwargs)
self.step(**kwargs)

0 comments on commit 02de39b

Please sign in to comment.