[英]Is gpt-2 unusable with python?
我正在關注本教程並在使用 train.py 時遇到了一個問題。 問題說
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
我在互聯網上搜索了很多,結果發現 tensorflow.contrib 已被棄用。 那么有沒有其他方法可以做到這一點,或者 gpt-2 不能與 python 一起使用?
我也試過
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
嘗試這個:
pip install tensorflow-gpu==1.15.0
pip install 'tensorflow-estimator<1.15.0rc0,>=1.14.0rc0' --force-reinstall
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.