Advertisement
Guest User

Untitled

a guest
Jan 18th, 2020
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.44 KB | None | 0 0
  1. Traceback (most recent call last):
  2. File "/root/.local/lib/python3.6/site-packages/discord/client.py", line 270, in _run_event
  3. await coro(*args, **kwargs)
  4. File "bot.py", line 543, in on_message
  5. await game.add_to_queue(msg.author, msg.content)
  6. File "bot.py", line 142, in add_to_queue
  7. await self.consume_queue()
  8. File "bot.py", line 111, in consume_queue
  9. pool, self.story_manager.act, f'\n> {to_calc[0]} {to_calc[1]}.\n'), self.timeout, loop=loop)
  10. File "/usr/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
  11. return fut.result()
  12. File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
  13. result = self.fn(*self.args, **self.kwargs)
  14. File "/AIDungeon/story/story_manager.py", line 215, in act
  15. result = self.generate_result(action_choice)
  16. File "/AIDungeon/story/story_manager.py", line 220, in generate_result
  17. block = self.generator.generate(self.story_context() + action)
  18. File "/AIDungeon/generator/gpt2/gpt2_generator.py", line 120, in generate
  19. text = self.generate_raw(prompt)
  20. File "/AIDungeon/generator/gpt2/gpt2_generator.py", line 103, in generate_raw
  21. self.context: [context_tokens for _ in range(self.batch_size)]
  22. File "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/client/session.py", line 956, in run
  23. run_metadata_ptr)
  24. File "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/client/session.py", line 1180, in _run
  25. feed_dict_tensor, options, run_metadata)
  26. File "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/client/session.py", line 1359, in _do_run
  27. run_metadata)
  28. File "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/client/session.py", line 1384, in _do_call
  29. raise type(e)(node_def, op, message)
  30. tensorflow.python.framework.errors_impl.InvalidArgumentError: indices[0,1024] = 1024 is not in [0, 1024)
  31. [[node sample_sequence/model/GatherV2_1 (defined at /usr/local/lib/python3.6/dist-packages/tensorflow_core/python/framework/ops.py:1748) ]]
  32.  
  33. Original stack trace for 'sample_sequence/model/GatherV2_1':
  34. File "/usr/lib/python3.6/threading.py", line 884, in _bootstrap
  35. self._bootstrap_inner()
  36. File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
  37. self.run()
  38. File "/usr/lib/python3.6/threading.py", line 864, in run
  39. self._target(*self._args, **self._kwargs)
  40. File "/usr/lib/python3.6/concurrent/futures/thread.py", line 69, in _worker
  41. work_item.run()
  42. File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
  43. result = self.fn(*self.args, **self.kwargs)
  44. File "bot.py", line 70, in create_story_manager
  45. generator = GPT2Generator(censor=False)
  46. File "/AIDungeon/generator/gpt2/gpt2_generator.py", line 52, in __init__
  47. top_p=top_p,
  48. File "/AIDungeon/generator/gpt2/src/sample.py", line 103, in sample_sequence
  49. past, prev, output = body(None, context, context)
  50. File "/AIDungeon/generator/gpt2/src/sample.py", line 89, in body
  51. next_outputs = step(hparams, prev, past=past)
  52. File "/AIDungeon/generator/gpt2/src/sample.py", line 75, in step
  53. hparams=hparams, X=tokens, past=past, reuse=tf.AUTO_REUSE
  54. File "/AIDungeon/generator/gpt2/src/model.py", line 186, in model
  55. h = tf.gather(wte, X) + tf.gather(wpe, positions_for(X, past_length))
  56. File "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/util/dispatch.py", line 180, in wrapper
  57. return target(*args, **kwargs)
  58. File "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/ops/array_ops.py", line 3956, in gather
  59. params, indices, axis, name=name)
  60. File "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/ops/gen_array_ops.py", line 4082, in gather_v2
  61. batch_dims=batch_dims, name=name)
  62. File "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/framework/op_def_library.py", line 794, in _apply_op_helper
  63. op_def=op_def)
  64. File "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/util/deprecation.py", line 507, in new_func
  65. return func(*args, **kwargs)
  66. File "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/framework/ops.py", line 3357, in create_op
  67. attrs, op_def, compute_device)
  68. File "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/framework/ops.py", line 3426, in _create_op_internal
  69. op_def=op_def)
  70. File "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/framework/ops.py", line 1748, in __init__
  71. self._traceback = tf_stack.extract_stack()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement