Code will appear at https://github.com/yzpang/amortized-noisy-channel-nmt.