https://medium.com/codex/dealing-with-deprecation-in-tensorflow-fixing-a-convolutional-neural-network-model-using-a-worked-dc3113b93049