Skip to content

Commit

Permalink
conv net hack fix
Browse files Browse the repository at this point in the history
  • Loading branch information
will-maclean committed Jun 23, 2024
1 parent 4ada49a commit eb6649e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/dqn/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@ impl<B: Backend> ConvDQNNet<B> {
//TODO: take in channels, calculate linear input size

Self {
c1: nn::conv::Conv2dConfig::new([obs_shape.shape().dims[0], 4], [3, 3]).init(device),
c2: nn::conv::Conv2dConfig::new([4, 8], [3, 3]).init(device),
l1: nn::LinearConfig::new(64, hidden_size).init(device),
c1: nn::conv::Conv2dConfig::new([obs_shape.shape().dims[0], 2], [3, 3]).init(device),
c2: nn::conv::Conv2dConfig::new([2, 3], [3, 3]).init(device),
l1: nn::LinearConfig::new(432, hidden_size).init(device),
l2: nn::LinearConfig::new(hidden_size, act_size).init(device),
}
}
Expand Down

0 comments on commit eb6649e

Please sign in to comment.