(self, birdview, state)
| 56 | nn.init.constant_(m.bias, 0.1) |
| 57 | |
| 58 | def forward(self, birdview, state): |
| 59 | x = self.cnn(birdview) |
| 60 | latent_state = self.state_linear(state) |
| 61 | |
| 62 | # latent_state = state.repeat(1, state.shape[1]*256) |
| 63 | |
| 64 | x = th.cat((x, latent_state), dim=1) |
| 65 | x = self.linear(x) |
| 66 | return x |
| 67 | |
| 68 | |
| 69 | class ImpalaCNN(nn.Module): |
no outgoing calls
no test coverage detected