Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
37
class
EncoderBlock(nn.Module):
38
def
__init__(self, embed_dim, n_heads, dropout):
Callers
nothing calls this directly
Calls
1
size
Method · 0.80
Tested by
no test coverage detected