Youtube-Code-Repository icon indicating copy to clipboard operation
Youtube-Code-Repository copied to clipboard

Issue

Open Zaibali9999 opened this issue 1 year ago • 3 comments

(array([-0.02680779, 0.00466264, -0.02511859, -0.04842809], dtype=float32), {}) Traceback (most recent call last): File "main.py", line 31, in action, prob, val = agent.choose_action(observation) File "D:\AI\PPO\agent.py", line 41, in choose_action state = tf.convert_to_tensor([observation],dtype=tf.float32) File "C:\Users\Buster.conda\envs\PPO\lib\site-packages\tensorflow\python\util\traceback_utils.py", line 153, in error_handler raise e.with_traceback(filtered_tb) from None File "C:\Users\Buster.conda\envs\PPO\lib\site-packages\tensorflow\python\framework\constant_op.py", line 102, in convert_to_eager_tensor return ops.EagerTensor(value, ctx.device_name, dtype) ValueError: Can't convert non-rectangular Python sequence to Tensor.

Zaibali9999 avatar Jan 14 '23 11:01 Zaibali9999