MCPcopy Index your code
hub / github.com/OpenDriveLab/TCP / forward

Method forward

roach/models/torch_layers.py:58–66  ·  view source on GitHub ↗
(self, birdview, state)

Source from the content-addressed store, hash-verified

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
69class ImpalaCNN(nn.Module):

Callers 3

run_stepMethod · 0.45
evaluate_policyMethod · 0.45
collect_rolloutsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected