xnn.gnn.models.megnet.Set2Set#
- class xnn.gnn.models.megnet.Set2Set(n_features, steps, layers=1)[source]#
Bases:
Module,FastPathModuleSet2Set readout of a set of vectors per structure (Vinyals, Bengio and Kudlur, 2015).
An LSTM reads the query
q*of every structure, attention over the rows of the structure (a softmax ofx_r . q) forms the readoutr, andq* = q + r(concatenation) feeds the next step. The output is the lastq*, twice the input width.- Parameters: