Skip to content

Commit 5371cb6

Browse files
authored
add new states when the max_memory_scaler is updated (#222)
1 parent c0e3137 commit 5371cb6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

torch_sim/autobatching.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -952,6 +952,8 @@ def _get_first_batch(self) -> SimState:
952952
scale_factor=self.memory_scaling_factor,
953953
)
954954
self.max_memory_scaler = self.max_memory_scaler * self.max_memory_padding
955+
newer_states = self._get_next_states()
956+
states = [*states, *newer_states]
955957
return concatenate_states([first_state, *states])
956958

957959
def next_batch( # noqa: C901

0 commit comments

Comments
 (0)