【发布时间】:2018-06-05 18:30:14
【问题描述】:
升级到 TF1.8 后,Pretty Tensor 停止工作并出现以下错误。似乎 _VARSCOPE_KEY 已从 variable_scope 中删除。
.../lib/python3.6/site-packages/prettytensor/scopes.py in
var_and_name_scope(names)
53 full_name = var_scope.name
54
---> 55 vs_key = tf.get_collection_ref(variable_scope._VARSCOPE_KEY)
56 try:
57 # TODO(eiderman): Remove this hack or fix the full file.
AttributeError: module 'tensorflow.python.ops.variable_scope' has no attribute '_VARSCOPE_KEY'
【问题讨论】:
-
请提供 MVCE (stackoverflow.com/help/mcve)。
-
如果回答对您有帮助,请接受(回答会占用受访者宝贵的时间) - 请参阅 What should I do when someone answers my question? - 谢谢