Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. ---------------------------------------------------------------------------
  2. ValueError Traceback (most recent call last)
  3. <ipython-input-11-5cec45b014c0> in <module>()
  4. 9 print_every=10,
  5. 10 sample_every=200,
  6. ---> 11 save_every=500
  7. 12 )
  8.  
  9. 6 frames
  10. /usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/variable_scope.py in _get_single_variable(self, name, shape, dtype, initializer, regularizer, partition_info, reuse, trainable, collections, caching_device, validate_shape, use_resource, constraint, synchronization, aggregation)
  11. 862 tb = [x for x in tb if "tensorflow/python" not in x[0]][:5]
  12. 863 raise ValueError("%s Originally defined at:\n\n%s" %
  13. --> 864 (err_msg, "".join(traceback.format_list(tb))))
  14. 865 found_var = self._vars[name]
  15. 866 if not shape.is_compatible_with(found_var.get_shape()):
  16.  
  17. ValueError: Variable model/wpe already exists, disallowed. Did you mean to set reuse=True or reuse=tf.AUTO_REUSE in VarScope? Originally defined at:
  18.  
  19. File "/usr/local/lib/python3.6/dist-packages/gpt_2_simple/src/model.py", line 153, in model
  20. initializer=tf.random_normal_initializer(stddev=0.01))
  21. File "/usr/local/lib/python3.6/dist-packages/gpt_2_simple/gpt_2.py", line 165, in finetune
  22. output = model.model(hparams=hparams, X=context)
  23. File "<ipython-input-6-c3120e17ea33>", line 11, in <module>
  24. save_every=500
  25. File "/usr/local/lib/python3.6/dist-packages/IPython/core/interactiveshell.py", line 2882, in run_code
  26. exec(code_obj, self.user_global_ns, self.user_ns)
  27. File "/usr/local/lib/python3.6/dist-packages/IPython/core/interactiveshell.py", line 2828, in run_ast_nodes
  28. if self.run_code(code, result):
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement