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

Method forward

SAC-robot-navigation-CL/SAC/SAC.py:96–99  ·  view source on GitHub ↗
(self, x, enc_output, tgt_mask=None, memory_mask=None)

Source from the content-addressed store, hash-verified

94 self.layers = nn.ModuleList([DecoderBlock(embed_dim, n_heads, dropout) for _ in range(n_blocks)])
95
96 def forward(self, x, enc_output, tgt_mask=None, memory_mask=None):
97 for layer in self.layers:
98 x = layer(x, enc_output, tgt_mask, memory_mask)
99 return x
100
101class Transformer(nn.Module):
102 def __init__(self, input_len, embed_dim, n_blocks, n_heads, dropout):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected