Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HobbitLong/PyContrast
/ forward
Method
forward
pycontrast/networks/util.py:11–12 ·
view source on GitHub ↗
(self, x)
Source
from the content-addressed store, hash-verified
9
self.p = p
10
11
def
forward(self, x):
12
return
F.normalize(x, p=self.p, dim=1)
13
14
15
class
JigsawHead(nn.Module):
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected