Guest User

Untitled

a guest
Jul 31st, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.44 KB | None | 0 0
  1. StatusNotOK Traceback (most recent call last)
  2. /usr/local/lib/python3.4/dist-packages/tensorflow/python/client/session.py in _do_call(self, fn, *args)
  3. 643 try:
  4. --> 644 return fn(*args)
  5. 645 except tf_session.StatusNotOK as e:
  6.  
  7. /usr/local/lib/python3.4/dist-packages/tensorflow/python/client/session.py in _run_fn(session, feed_dict, fetch_list, target_list, options, run_metadata)
  8. 627 return tf_session.TF_Run(
  9. --> 628 session, None, feed_dict, fetch_list, target_list, None)
  10. 629
  11.  
  12. StatusNotOK: Invalid argument: Input to reshape is a tensor with 81920 values, but the requested shape requires a multiple of 14400
  13. [[Node: Reshape_30 = Reshape[T=DT_FLOAT, _device="/job:localhost/replica:0/task:0/cpu:0"](dropout_28/mul_1, Reshape_30/shape)]]
  14.  
  15. During handling of the above exception, another exception occurred:
  16.  
  17. InvalidArgumentError Traceback (most recent call last)
  18. <ipython-input-75-4368bb4bdaad> in <module>()
  19. 95 batch_X, batch_Y = podaj_dane(dane_x, dane_y, rozmiar_probki, krok)
  20. 96 print( batch_X.shape )
  21. ---> 97 sess.run(optymalizacja, feed_dict={x: batch_X, y: batch_Y, keep_prob: dropout})
  22. 98
  23. 99 if krok % co_ile_wyswietlamy:
  24.  
  25. /usr/local/lib/python3.4/dist-packages/tensorflow/python/client/session.py in run(self, fetches, feed_dict, options, run_metadata)
  26. 338 try:
  27. 339 result = self._run(None, fetches, feed_dict, options_ptr,
  28. --> 340 run_metadata_ptr)
  29. 341 if run_metadata:
  30. 342 proto_data = tf_session.TF_GetBuffer(run_metadata_ptr)
  31.  
  32. /usr/local/lib/python3.4/dist-packages/tensorflow/python/client/session.py in _run(self, handle, fetches, feed_dict, options, run_metadata)
  33. 562 try:
  34. 563 results = self._do_run(handle, target_list, unique_fetches,
  35. --> 564 feed_dict_string, options, run_metadata)
  36. 565 finally:
  37. 566 # The movers are no longer used. Delete them.
  38.  
  39. /usr/local/lib/python3.4/dist-packages/tensorflow/python/client/session.py in _do_run(self, handle, target_list, fetch_list, feed_dict, options, run_metadata)
  40. 635 if handle is None:
  41. 636 return self._do_call(_run_fn, self._session, feed_dict, fetch_list,
  42. --> 637 target_list, options, run_metadata)
  43. 638 else:
  44. 639 return self._do_call(_prun_fn, self._session, handle, feed_dict,
  45.  
  46. /usr/local/lib/python3.4/dist-packages/tensorflow/python/client/session.py in _do_call(self, fn, *args)
  47. 657 # pylint: disable=protected-access
  48. 658 raise errors._make_specific_exception(node_def, op, error_message,
  49. --> 659 e.code)
  50. 660 # pylint: enable=protected-access
  51. 661
  52.  
  53. InvalidArgumentError: Input to reshape is a tensor with 81920 values, but the requested shape requires a multiple of 14400
  54. [[Node: Reshape_30 = Reshape[T=DT_FLOAT, _device="/job:localhost/replica:0/task:0/cpu:0"](dropout_28/mul_1, Reshape_30/shape)]]
  55. Caused by op 'Reshape_30', defined at:
  56. File "/usr/lib/python3.4/runpy.py", line 170, in _run_module_as_main
  57. "__main__", mod_spec)
  58. File "/usr/lib/python3.4/runpy.py", line 85, in _run_code
  59. exec(code, run_globals)
  60. File "/usr/local/lib/python3.4/dist-packages/ipykernel/__main__.py", line 3, in <module>
  61. app.launch_new_instance()
  62. File "/usr/local/lib/python3.4/dist-packages/traitlets/config/application.py", line 596, in launch_instance
  63. app.start()
  64. File "/usr/local/lib/python3.4/dist-packages/ipykernel/kernelapp.py", line 442, in start
  65. ioloop.IOLoop.instance().start()
  66. File "/usr/local/lib/python3.4/dist-packages/zmq/eventloop/ioloop.py", line 162, in start
  67. super(ZMQIOLoop, self).start()
  68. File "/usr/local/lib/python3.4/dist-packages/tornado/ioloop.py", line 883, in start
  69. handler_func(fd_obj, events)
  70. File "/usr/local/lib/python3.4/dist-packages/tornado/stack_context.py", line 275, in null_wrapper
  71. return fn(*args, **kwargs)
  72. File "/usr/local/lib/python3.4/dist-packages/zmq/eventloop/zmqstream.py", line 440, in _handle_events
  73. self._handle_recv()
  74. File "/usr/local/lib/python3.4/dist-packages/zmq/eventloop/zmqstream.py", line 472, in _handle_recv
  75. self._run_callback(callback, msg)
  76. File "/usr/local/lib/python3.4/dist-packages/zmq/eventloop/zmqstream.py", line 414, in _run_callback
  77. callback(*args, **kwargs)
  78. File "/usr/local/lib/python3.4/dist-packages/tornado/stack_context.py", line 275, in null_wrapper
  79. return fn(*args, **kwargs)
  80. File "/usr/local/lib/python3.4/dist-packages/ipykernel/kernelbase.py", line 276, in dispatcher
  81. return self.dispatch_shell(stream, msg)
  82. File "/usr/local/lib/python3.4/dist-packages/ipykernel/kernelbase.py", line 228, in dispatch_shell
  83. handler(stream, idents, msg)
  84. File "/usr/local/lib/python3.4/dist-packages/ipykernel/kernelbase.py", line 391, in execute_request
  85. user_expressions, allow_stdin)
  86. File "/usr/local/lib/python3.4/dist-packages/ipykernel/ipkernel.py", line 199, in do_execute
  87. shell.run_cell(code, store_history=store_history, silent=silent)
  88. File "/usr/local/lib/python3.4/dist-packages/IPython/core/interactiveshell.py", line 2723, in run_cell
  89. interactivity=interactivity, compiler=compiler, result=result)
  90. File "/usr/local/lib/python3.4/dist-packages/IPython/core/interactiveshell.py", line 2825, in run_ast_nodes
  91. if self.run_code(code, result):
  92. File "/usr/local/lib/python3.4/dist-packages/IPython/core/interactiveshell.py", line 2885, in run_code
  93. exec(code_obj, self.user_global_ns, self.user_ns)
  94. File "<ipython-input-75-4368bb4bdaad>", line 80, in <module>
  95. przewidywania = siec(x, 3, 3, 2, 512, keep_prob)
  96. File "<ipython-input-75-4368bb4bdaad>", line 54, in siec
  97. pol = tf.reshape(S2, [-1, wagi(3,3,2,512)['polaczenie'].get_shape().as_list()[0] ])
  98. File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/ops/gen_array_ops.py", line 1092, in reshape
  99. name=name)
  100. File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/ops/op_def_library.py", line 655, in apply_op
  101. op_def=op_def)
  102. File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/framework/ops.py", line 2154, in create_op
  103. original_op=self._default_original_op, op_def=op_def)
  104. File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/framework/ops.py", line 1154, in __init__
  105. self._traceback = _extract_stack()
Add Comment
Please, Sign In to add comment