Pooling architecture using the TW layer.
(self, n_features, n_templates, n_template_nodes)
| 239 | """ |
| 240 | |
| 241 | def __init__(self, n_features, n_templates, n_template_nodes): |
| 242 | """ |
| 243 | Pooling architecture using the TW layer. |
| 244 | """ |
| 245 | super().__init__() |
| 246 | |
| 247 | self.n_features = n_features |
| 248 | self.n_templates = n_templates |
| 249 | self.n_template_nodes = n_template_nodes |
| 250 | |
| 251 | self.TFGW = TWPooling( |
| 252 | self.n_templates, self.n_template_nodes, self.n_features |
| 253 | ) |
| 254 | |
| 255 | self.linear = Linear(self.n_templates, 1) |
| 256 | |
| 257 | def forward(self, x, edge_index): |
| 258 | x = self.TFGW(x, edge_index) |