Tensorflow Deep Encoding Query Stage