MCPcopy Create free account
hub / github.com/NineAbyss/ZeroG / __init__

Method __init__

code/model.py:104–110  ·  view source on GitHub ↗
(self, in_dim, emb_dim, num_layer, kernel='gcn', drop_ratio=0,
                 act='relu', norm=None)

Source from the content-addressed store, hash-verified

102class GraphCL(nn.Module):
103
104 def __init__(self, in_dim, emb_dim, num_layer, kernel='gcn', drop_ratio=0,
105 act='relu', norm=None):
106 super().__init__()
107
108 self.lin_emb_dim = emb_dim * num_layer
109 self.encoder = Encoder(in_dim, emb_dim, num_layer, kernel, drop_ratio, act, norm)
110 self.proj_head = LinearPred(self.lin_emb_dim, emb_dim, emb_dim, 2)
111
112
113 def forward(self, x, edge_index, edge_weigt=None, batch=None):

Callers

nothing calls this directly

Calls 3

EncoderClass · 0.85
LinearPredClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected