Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: module 'tensorflow' has no attribute 'AUTO_REUSE' #44

Closed
xuf12 opened this issue Feb 2, 2018 · 1 comment
Closed

AttributeError: module 'tensorflow' has no attribute 'AUTO_REUSE' #44

xuf12 opened this issue Feb 2, 2018 · 1 comment

Comments

@xuf12
Copy link

xuf12 commented Feb 2, 2018

用pip 安装在python3下,使用pos_tagger出错

~/.pyenv/versions/anaconda3-4.4.0/lib/python3.6/site-packages/deepnlp/pos_tagger.py in _init_pos_model(self, session)
60 # Check if self.model already exist
61 if self.model is None:
---> 62 with tf.variable_scope(model_var_scope, tf.AUTO_REUSE):
63 self.model = pos_model.POSTagger(is_training=False, config=config) # save object after is_training
64 # Load Specific .data* ckpt file
AttributeError: module 'tensorflow' has no attribute 'AUTO_REUSE'

@xuf12
Copy link
Author

xuf12 commented Feb 2, 2018

问题找到了。tensorflow版本 1.3.0,升级到1.4.0就好了

@xuf12 xuf12 closed this as completed Feb 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant