gpt-2
gpt-2 copied to clipboard
upgrade to TensorFlow 2
This PR upgrades the script to work with TensorFlow 2. Main goal was to be able to run it on Google colab, which has the new version.
-
Used TensorFlow utility to generate compatible code: https://www.tensorflow.org/guide/upgrade#directory_tree
-
Replaced hyperparameters model to simply use a dictionary
I've copied the files from this branch locally, and still have tensorflow.contrib issues. Even tried #231. Is the fix above still working or is something missing? and when will it get merged?
Should you also modify DEVELOPERS.md, to reflect the prerequisite change?