Git Product home page Git Product logo

transformer_attention's Introduction

transformer_attention

これを実際に作って理解する
作って理解する Transformer / Attention

試しにsphinxでドキュメント

感想

写経してみたけど正直あまり理解度は深まらなかった。多分Qiitaの記事を見て理解してくれってことなんだろうけど、正直もっとコード中にコメントで解説を書いてほしかった。あんまりコードを写経する意味はなく、他の解説とかも含めて解説記事読んでる方が理解が深まり、断然マシだった。
ついでに自身のTensorFlowについての理解がかなり浅いことも分かった。とはいえなんとなくコードは読めるけど。Keras触ってるからもう少しすんなり読めると思ってた。

Sphinxもかなりわかりにくいところが多く、下記のサイトを見つけるまでなかなかドキュメント製作すらまともにできなかった。(ついでにGithub Pagesの更新が遅くてなかなか適応されず、自分がおかしいのかと何度かやり直した。) 忘れないように参考までにメモ https://qiita.com/futakuchi0117/items/4d3997c1ca1323259844

attention.py

基本的なatttention機構とそれをパラレルに並べたものを実装

common_layer.py

  • Position-wise Feedforward Network
  • ResidualNormalizationWrapper
  • LayerNormalization
    を実装

embedding.py

  • TokenEmbedding
  • AddPositionalEncoding
    を実装

transformer.py

  • Transformer model
  • Encoder model
  • Decoder model
    を実装

transformer_attention's People

Contributors

pop-ketle avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.