Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HKUDS/PromptMM
/ featureExtract
Method
featureExtract
codes/Models.py:498–499 ·
view source on GitHub ↗
(self, embeds)
Source
from the content-addressed store, hash-verified
496
pass
497
498
def
featureExtract(self, embeds):
499
return
self.act(embeds @ self.W) + embeds
500
501
def
pairPred(self, embeds1, embeds2):
502
return
(self.featureExtract(embeds1) * self.featureExtract(embeds2)).sum(dim=-1)
Callers
2
pairPred
Method · 0.95
crossPred
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected