![](/img/trans.png)
[英]AttributeError: module 'tensorflow.python.framework.op_def_registry' has no attribute 'get_registered_ops'
[英]AttributeError: module 'tensorflow.python.framework.op_def_registry' has no attribute 'register_op_list
我正在嘗試 Max Woolfe 的 gpt2-simple( https://github.com/minimaxir/gpt-2-simple ),似乎我無法通過導入 gpt_2_simple。 它不斷拋出一個AttributeError。 我試過 Python 2 & 3 和 Tensorflow 1.14 & 1.15。 這是完整錯誤的屏幕截圖:
解決方案:
!pip install requirements.txt #from the same above mentioned repo
!pip install tensorflow-addons #will provide contrib support and remove the depreciation warning.
提供要點供參考。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.