xnn.gnn.fast.megnet.set2set_function#

xnn.gnn.fast.megnet.set2set_function(steps, layers)[source]#

f(x, *weights, index, per_structure): Set2Set with the LSTM cell written out.

The weights are those of torch.nn.LSTM per layer (weight_ih, weight_hh, bias_ih, bias_hh); per_structure is any (B, 1) column (its rows give B).

Parameters:
Return type:

Callable