A TensorFlow implementation of "Sequence Modeling with Hierarchical Deep Generative Models with Dual Memory" (published in CIKM2017).