Skip to content

Commit

Permalink
Add some todos.
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentMazare committed Nov 23, 2024
1 parent 4a40e26 commit d2d98d0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rust/moshi-core/src/seanet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ impl Module for SeaNetResnetBlock {

impl StreamingModule for SeaNetResnetBlock {
fn reset_state(&mut self) {
// TODO(laurent): self.skip_op should probably be resetted here.
for block in self.block.iter_mut() {
block.reset_state()
}
Expand All @@ -133,7 +134,10 @@ impl StreamingModule for SeaNetResnetBlock {
}
match self.shortcut.as_ref() {
None => self.skip_op.step(&ys, xs),
Some(shortcut) => self.skip_op.step(&ys, &xs.apply(shortcut)?),
Some(shortcut) => {
// TODO(laurent): shouldn't this use shortcut.step(xs) instead?
self.skip_op.step(&ys, &xs.apply(shortcut)?)
}
}
}
}
Expand Down

0 comments on commit d2d98d0

Please sign in to comment.