Skip to content

Commit 1b1aa81

Browse files
committed
small fix for multistep ensemble training
1 parent dbcf2c1 commit 1b1aa81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

makani/models/stepper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,11 @@ def _forward_eval(self, inp, update_state=True, replace_state=True):
153153

154154
return y
155155

156-
def forward(self, inp, replace_state=True):
156+
def forward(self, inp, update_state=True, replace_state=True):
157157
# decide which routine to call
158158
if self.training:
159159
y = self._forward_train(inp, update_state=True, replace_state=replace_state)
160160
else:
161-
y = self._forward_eval(inp, update_state=True, replace_state=replace_state)
161+
y = self._forward_eval(inp, update_state=update_state, replace_state=replace_state)
162162

163163
return y

0 commit comments

Comments
 (0)