Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/PyGCL/PyGCL
/ project
Method
project
examples/GRACE.py:51–53 ·
view source on GitHub ↗
(self, z: torch.Tensor)
Source
from the content-addressed store, hash-verified
49
return
z, z1, z2
50
51
def
project(self, z: torch.Tensor) -> torch.Tensor:
52
z = F.elu(self.fc1(z))
53
return
self.fc2(z)
54
55
56
def
train(encoder_model, contrast_model, data, optimizer):
Callers
5
forward
Method · 0.95
forward
Method · 0.95
forward
Method · 0.95
train
Function · 0.45
train
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected