You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi 博主,
我的state是一个列表,初始值为[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],选择action时出错:TypeError: tuple indices must be integers or slices, not tuple
我认为state已经是(1, size_of_observation)形式了,就注释掉了,observation = observation[np.newaxis, :]
结果还是报错:
Before call eo.attach
action_value = self.sess.run(self.q_eval, feed_dict={self.s:observation})
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\client\session.py", line 929, in run
run_metadata_ptr)
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\client\session.py", line 1128, in _run
str(subfeed_t.get_shape())))
ValueError: Cannot feed value of shape (15,) for Tensor 's:0', which has shape '(?, 5)'
有哪位已经跑过代码的大侠也来说说,谢谢!
The text was updated successfully, but these errors were encountered:
Hi 博主,
我的state是一个列表,初始值为[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],选择action时出错:TypeError: tuple indices must be integers or slices, not tuple
我认为state已经是(1, size_of_observation)形式了,就注释掉了,observation = observation[np.newaxis, :]
结果还是报错:
Before call eo.attach
action_value = self.sess.run(self.q_eval, feed_dict={self.s:observation})
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\client\session.py", line 929, in run
run_metadata_ptr)
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\client\session.py", line 1128, in _run
str(subfeed_t.get_shape())))
ValueError: Cannot feed value of shape (15,) for Tensor 's:0', which has shape '(?, 5)'
有哪位已经跑过代码的大侠也来说说,谢谢!
The text was updated successfully, but these errors were encountered: