MCPcopy Create free account
hub / github.com/HKUDS/PromptMM / crossPred

Method crossPred

codes/Models.py:504–505  ·  view source on GitHub ↗
(self, embeds1, embeds2)

Source from the content-addressed store, hash-verified

502 return (self.featureExtract(embeds1) * self.featureExtract(embeds2)).sum(dim=-1)
503
504 def crossPred(self, embeds1, embeds2):
505 return self.featureExtract(embeds1) @ self.featureExtract(embeds2).T
506
507
508

Callers 2

predAllMethod · 0.45

Calls 1

featureExtractMethod · 0.95

Tested by

no test coverage detected