.. _tutorials4-index: Old (new) wines in new bottle ============================= * **Capsule** `[paper] `__ `[tutorial] <4_old_wines/2_capsule.html>`__ `[code] `__: this new computer vision model has two key ideas -- enhancing the feature representation in a vector form (instead of a scalar) called *capsule*, and replacing max-pooling with dynamic routing. The idea of dynamic routing is to integrate a lower level capsule to one (or several) of a higher level one with non-parametric message-passing. We show how the later can be nicely implemented with DGL APIs. * **Transformer** `[paper] `__ `[tutorial] <4_old_wines/7_transformer.html>`__ `[code] `__ and **Universal Transformer** `[paper] `__ `[tutorial] <4_old_wines/7_transformer.html>`__ `[code] `__: these two models replace RNN with several layers of multi-head attention to encode and discover structures among tokens of a sentence. These attention mechanisms can similarly formulated as graph operations with message-passing.