I was following this tutorial and ran across an issue while using train.py. the issue says
Exception has occurred: ModuleNotFoundError
No module named 'tensorflow.contrib'
File "F:\PythonFiles\Post Generator\gpt-2\src\model.py", line 3, in <module>
from tensorflow.contrib.training import HParams
I searched a lot on the internet and it turns out that tensorflow.contrib has been depreceated. So is there an alternate way to do so or the gpt-2 is not usable with python?
I also tried
pip install tensorflow==1.15
ERROR: Could not find a version that satisfies the requirement tensorflow==1.15 (from versions: 2.2.0rc1, 2.2.0rc2, 2.2.0rc3, 2.2.0rc4, 2.2.0)
ERROR: No matching distribution found for tensorflow==1.15