Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Prettytensor not working with TF1.8 #62

Open
YutingZhang opened this issue May 13, 2018 · 4 comments
Open

Prettytensor not working with TF1.8 #62

YutingZhang opened this issue May 13, 2018 · 4 comments

Comments

@YutingZhang
Copy link

YutingZhang commented May 13, 2018

After upgrading to TF1.8, prettytensor stopped working with the following error. It seems _VARSCOPE_KEY is removed from 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'

@Saahiljeet-Singh
Copy link

@YutingZhang Did you find the fix for this issue ?

@YutingZhang
Copy link
Author

@Saahiljeet-Singh I have not looked into this issue. Instead, I simply downgraded TF to 1.7 ...

@akhilvasvani
Copy link

Change
tf.get_collection_ref(variable_scope._VARSCOPE_KEY) --> tf.get_collection_ref(variable_scope._VARSCOPESTORE_KEY)

@shine0318
Copy link

Change tf.get_collection_ref(variable_scope._VARSCOPE_KEY) --> tf.get_collection_ref(variable_scope._VARSCOPESTORE_KEY)

After the change, the error is still reported
image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants