less than 1 minute read

Tags: ,

Encoder-Decoder 架構

Imgur Imgur
Imgur Imgur

seq2seq

Imgur Imgur
Imgur Imgur
Imgur Imgur
Imgur Imgur

seq2seq in tensorflow

  • tf.contrib.seq2seq
  • 重要的API
    • TrainingeHelper
      • user target data as next decoder input
    • GreedyEmbeddingHelper
      • use argmax of the output to next decoder input
    • BasicDecoder
      • 處理流程
    • dynamic_decode
      • 產生 output
Imgur
Imgur

seq2seq code