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

Method forward

SAC-robot-navigation-CL/SAC/SAC.py:33–35  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

31 self.register_buffer('pe', pe)
32
33 def forward(self, x):
34 x = x + self.pe[:x.size(0), :]
35 return x
36
37class EncoderBlock(nn.Module):
38 def __init__(self, embed_dim, n_heads, dropout):

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected