Update datagen for use with tensorflow >= 1.7.0
Update datagen for use with tensorflow >= 1.7.0

tensorflow.contrib.data.TFRecordDataset doesn't exist
as of 1.7.0 and tensoflow.data should be used instead.

emedvedev/attention-ocr