在學(xué)習(xí)?Knifey-Spoony數(shù)據(jù)集上做分類的神經(jīng)網(wǎng)絡(luò)。它將Inception模型得到的transfer-values作為輸入,運(yùn)行報(bào)如下兩個(gè)錯(cuò)
一
/usr/local/lib/python3.5/dist-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'
修改tf.get_collection_ref(variable_scope._VARSCOPE_KEY)
未 tf.get_collection_ref(variable_scope._VARSCOPESTORE_KEY)
二
/usr/local/lib/python3.5/dist-packages/tensorflow/python/ops/variable_scope.py in get_variable_scope()
1347 def get_variable_scope():
1348 ? """Returns the current variable scope."""
-> 1349 ? return get_variable_scope_store().current_scope
AttributeError: 'VariableScope' object has no attribute 'current_scope'
在如下 加入? 寫(xiě)錯(cuò)了?
def _get_unique_variable_scope(prefix):
"""Get a name with the given prefix unique in the current variable scope."""
var_scope_store = get_variable_scope_store()
?current_scope = get_variable_scope()