Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.60 KB | None | 0 0
  1. Fetching checkpoint: 1.05Mit [00:00, 187Mit/s]
  2. Fetching encoder.json: 1.05Mit [00:00, 82.7Mit/s]
  3. Fetching hparams.json: 1.05Mit [00:00, 277Mit/s]
  4. Fetching model.ckpt.data-00000-of-00001: 1.42Git [00:09, 154Mit/s]
  5. Fetching model.ckpt.index: 1.05Mit [00:00, 276Mit/s]
  6. Fetching model.ckpt.meta: 1.05Mit [00:00, 94.8Mit/s]
  7. Fetching vocab.bpe: 1.05Mit [00:00, 142Mit/s]
  8.  
  9. ---------------------------------------------------------------------------
  10.  
  11. ValueError Traceback (most recent call last)
  12.  
  13. <ipython-input-6-02587ed442f1> in <module>()
  14. 8 'shakespeare.txt',
  15. 9 model_name=model_name,
  16. ---> 10 steps=1000) # steps is max number of training steps
  17. 11
  18. 12 gpt2.generate(sess)
  19.  
  20. 6 frames
  21.  
  22. /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)
  23. 862 tb = [x for x in tb if "tensorflow/python" not in x[0]][:5]
  24. 863 raise ValueError("%s Originally defined at:\n\n%s" %
  25. --> 864 (err_msg, "".join(traceback.format_list(tb))))
  26. 865 found_var = self._vars[name]
  27. 866 if not shape.is_compatible_with(found_var.get_shape()):
  28.  
  29. ValueError: Variable model/wpe already exists, disallowed. Did you mean to set reuse=True or reuse=tf.AUTO_REUSE in VarScope? Originally defined at:
  30.  
  31. File "/usr/local/lib/python3.6/dist-packages/gpt_2_simple/src/model.py", line 153, in model
  32. initializer=tf.random_normal_initializer(stddev=0.01))
  33. File "/usr/local/lib/python3.6/dist-packages/gpt_2_simple/gpt_2.py", line 165, in finetune
  34. output = model.model(hparams=hparams, X=context)
  35. File "<ipython-input-2-f3f48ea7636f>", line 10, in <module>
  36. steps=1000) # steps is max number of training steps
  37. File "/usr/local/lib/python3.6/dist-packages/IPython/core/interactiveshell.py", line 2882, in run_code
  38. exec(code_obj, self.user_global_ns, self.user_ns)
  39. File "/usr/local/lib/python3.6/dist-packages/IPython/core/interactiveshell.py", line 2822, in run_ast_nodes
  40. if self.run_code(code, result):
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement