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

Method __init__

SAC-robot-navigation-CL/SAC/SAC.py:92–94  ·  view source on GitHub ↗
(self, embed_dim, n_blocks, n_heads, dropout)

Source from the content-addressed store, hash-verified

90
91class Decoder(nn.Module):
92 def __init__(self, embed_dim, n_blocks, n_heads, dropout):
93 super(Decoder, self).__init__()
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:

Callers

nothing calls this directly

Calls 2

DecoderBlockClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected