错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Self-Attention and Transformers

  • Pierre M. Nugues

摘要

After feed-forward and recurrent, the transformer architecture is a third kind of network. This chapter dissects the transformer architecture starting from the core concept of attention. It outlines its building blocks with small programs in PyTorch so that the reader can experiment with them. The chapter concludes with an implementation of a sequence annotation and a classifier with the encoder part of a transformer.