When the message passing procedure ends, the k-step-aggregated node states are to be partitioned into subgraphs (correspoding to each molecule in the batch) and subsequently reduced to graph-level embeddings. In the original paper, a set-to-set layer was used for this purpose. In this tutorial however, a transformer encoder will be used. Specifically: