MCPcopy Create free account
hub / github.com/ShengbenBi/CTSAC / forward

Method forward

SAC-robot-navigation-CL/SAC/SAC.py:62–65  ·  view source on GitHub ↗
(self, x, src_mask=None)

Source from the content-addressed store, hash-verified

60 self.layers = nn.ModuleList([EncoderBlock(embed_dim, n_heads, dropout) for _ in range(n_blocks)])
61
62 def forward(self, x, src_mask=None):
63 for layer in self.layers:
64 x = layer(x, src_mask)
65 return x
66
67class DecoderBlock(nn.Module):
68 def __init__(self, embed_dim, n_heads, dropout):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected