Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Anoise/WTFlib
/ forward
Method
forward
LDPS_Graph/layers/Embed.py:24–25 ·
view source on GitHub ↗
(self, x)
Source
from the content-addressed store, hash-verified
22
self.register_buffer(
'pe'
, pe)
23
24
def
forward(self, x):
25
return
self.pe[:, :x.size(1)]
26
27
28
class
TokenEmbedding(nn.Module):
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected