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

Gender Script return error #7

Open
beshoo opened this issue Jun 22, 2018 · 0 comments
Open

Gender Script return error #7

beshoo opened this issue Jun 22, 2018 · 0 comments

Comments

@beshoo
Copy link

beshoo commented Jun 22, 2018

i am testing the gender script put when i start it after 1 min of working


error
error
error
error
error
error
error
error
error
error
error
Traceback (most recent call last):
  File "train5.py", line 283, in <module>
    neural_network(len(vocabulary_list))
  File "train5.py", line 192, in neural_network
    initializer=tf.contrib.layers.xavier_initializer()) # [128*3,2]
  File "/usr/lib/python2.7/site-packages/tensorflow/python/ops/variable_scope.py", line 1336, in get_variable
    constraint=constraint)
  File "/usr/lib/python2.7/site-packages/tensorflow/python/ops/variable_scope.py", line 1098, in get_variable
    constraint=constraint)
  File "/usr/lib/python2.7/site-packages/tensorflow/python/ops/variable_scope.py", line 435, in get_variable
    constraint=constraint)
  File "/usr/lib/python2.7/site-packages/tensorflow/python/ops/variable_scope.py", line 404, in _true_getter
    use_resource=use_resource, constraint=constraint)
  File "/usr/lib/python2.7/site-packages/tensorflow/python/ops/variable_scope.py", line 743, in _get_single_variable
    name, "".join(traceback.format_list(tb))))
ValueError: Variable W already exists, disallowed. Did you mean to set reuse=True or reuse=tf.AUTO_REUSE in VarScope? Originally defined at:

  File "train5.py", line 192, in neural_network
    initializer=tf.contrib.layers.xavier_initializer()) # [128*3,2]
  File "train5.py", line 200, in train_neural_network
    output = neural_network(len(vocabulary_list)) # [-1,2]
  File "train5.py", line 280, in <module>
    train_neural_network()

Please advice

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