MCPcopy Create free account
hub / github.com/PythonOT/POT / __init__

Method __init__

test/test_gnn.py:32–46  ·  view source on GitHub ↗

Pooling architecture using the TFGW layer.

(self, n_features, n_templates, n_template_nodes)

Source from the content-addressed store, hash-verified

30 """
31
32 def __init__(self, n_features, n_templates, n_template_nodes):
33 """
34 Pooling architecture using the TFGW layer.
35 """
36 super().__init__()
37
38 self.n_features = n_features
39 self.n_templates = n_templates
40 self.n_template_nodes = n_template_nodes
41
42 self.TFGW = TFGWPooling(
43 self.n_templates, self.n_template_nodes, self.n_features
44 )
45
46 self.linear = Linear(self.n_templates, 1)
47
48 def forward(self, x, edge_index):
49 x = self.TFGW(x, edge_index)

Callers

nothing calls this directly

Calls 2

TFGWPoolingClass · 0.90
__init__Method · 0.45

Tested by

no test coverage detected