Tensorflow Deep Encoding Index Stage