Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/danielpatrickhug/GitModel
/ encode
Method
encode
src/ml_models/graph_networks/gnn_head.py:134–135 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
132
return
torch.sum(token_embeddings * input_mask_expanded, 1) / torch.clamp(input_mask_expanded.sum(1), min=1e-9)
133
134
def
encode(self):
135
pass
136
137
138
class
GATLayer(nn.Module):
Callers
1
embed_data
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected