Skip to content

Instantly share code, notes, and snippets.

@lukaspj
Created March 24, 2017 09:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukaspj/06baef80b3e368ec2af0d44fddae6072 to your computer and use it in GitHub Desktop.
Save lukaspj/06baef80b3e368ec2af0d44fddae6072 to your computer and use it in GitHub Desktop.
Traceback (most recent call last):
File "C:/Speciale/RL/SharpShooter-Learner/src/__init__.py", line 21, in <module>
ddqrn = DDQRN(sess, fv_size, fv_size, actions_size, "main_DDQRN")
File "C:\Speciale\RL\SharpShooter-Learner\src\simple_ddqrn.py", line 28, in __init__
lstm_layer_output = self.build_lstm_layer(input_layer_output)
File "C:\Speciale\RL\SharpShooter-Learner\src\simple_ddqrn.py", line 67, in build_lstm_layer
scope=scope
File "C:\Speciale\RL\SharpShooter-Learner\venv\lib\site-packages\tensorflow\python\ops\rnn.py", line 546, in dynamic_rnn
dtype=dtype)
File "C:\Speciale\RL\SharpShooter-Learner\venv\lib\site-packages\tensorflow\python\ops\rnn.py", line 713, in _dynamic_rnn_loop
swap_memory=swap_memory)
File "C:\Speciale\RL\SharpShooter-Learner\venv\lib\site-packages\tensorflow\python\ops\control_flow_ops.py", line 2605, in while_loop
result = context.BuildLoop(cond, body, loop_vars, shape_invariants)
File "C:\Speciale\RL\SharpShooter-Learner\venv\lib\site-packages\tensorflow\python\ops\control_flow_ops.py", line 2438, in BuildLoop
pred, body, original_loop_vars, loop_vars, shape_invariants)
File "C:\Speciale\RL\SharpShooter-Learner\venv\lib\site-packages\tensorflow\python\ops\control_flow_ops.py", line 2388, in _BuildLoop
body_result = body(*packed_vars_for_body)
File "C:\Speciale\RL\SharpShooter-Learner\venv\lib\site-packages\tensorflow\python\ops\rnn.py", line 698, in _time_step
(output, new_state) = call_cell()
File "C:\Speciale\RL\SharpShooter-Learner\venv\lib\site-packages\tensorflow\python\ops\rnn.py", line 684, in <lambda>
call_cell = lambda: cell(input_t, state)
File "C:\Speciale\RL\SharpShooter-Learner\src\external\act_cell.py", line 63, in __call__
counter, state, inputs, acc_outputs, acc_states])
File "C:\Speciale\RL\SharpShooter-Learner\venv\lib\site-packages\tensorflow\python\ops\control_flow_ops.py", line 2605, in while_loop
result = context.BuildLoop(cond, body, loop_vars, shape_invariants)
File "C:\Speciale\RL\SharpShooter-Learner\venv\lib\site-packages\tensorflow\python\ops\control_flow_ops.py", line 2438, in BuildLoop
pred, body, original_loop_vars, loop_vars, shape_invariants)
File "C:\Speciale\RL\SharpShooter-Learner\venv\lib\site-packages\tensorflow\python\ops\control_flow_ops.py", line 2388, in _BuildLoop
body_result = body(*packed_vars_for_body)
File "C:\Speciale\RL\SharpShooter-Learner\src\external\act_cell.py", line 99, in act_step
output, new_state = static_rnn(cell=self.cell, inputs=[input_with_flags], initial_state=state, scope=type(self.cell).__name__)
File "C:\Speciale\RL\SharpShooter-Learner\venv\lib\site-packages\tensorflow\contrib\rnn\python\ops\core_rnn.py", line 197, in static_rnn
(output, state) = call_cell()
File "C:\Speciale\RL\SharpShooter-Learner\venv\lib\site-packages\tensorflow\contrib\rnn\python\ops\core_rnn.py", line 184, in <lambda>
call_cell = lambda: cell(input_, state)
File "C:\Speciale\RL\SharpShooter-Learner\venv\lib\site-packages\tensorflow\contrib\rnn\python\ops\core_rnn_cell_impl.py", line 176, in __call__
c, h = state
File "C:\Speciale\RL\SharpShooter-Learner\venv\lib\site-packages\tensorflow\python\framework\ops.py", line 502, in __iter__
raise TypeError("'Tensor' object is not iterable.")
TypeError: 'Tensor' object is not iterable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment