Traceback (most recent call last):


 "run.py", line 106, in <module>

main()


 "run.py", line 99, in main

env.train_and_test(agent, early_stop=args.early_stop, n_tests=args.runs)


 "/home/ubuntu/btcbot/btc_env.py", line 447, in train_and_test

runner.run(timesteps=n_train, max_episode_timesteps=n_train)


 "/home/ubuntu/tensorforce/tensorforce/execution/runner.py", line 127, in run

self.agent.observe(terminal=terminal, reward=reward)


 "/home/ubuntu/tensorforce/tensorforce/agents/agent.py", line 217, in observe

reward=self.observe_reward


 "/home/ubuntu/tensorforce/tensorforce/models/model.py", line 1129, in observe

episode = self.monitored_session.run(fetches=fetches, feed_dict=feed_dict)


 "/home/ubuntu/anaconda3/lib/python3.6/site-packages/tensorflow/python/training/monitored_session.py", line 539, in run

run_metadata=run_metadata)


 "/home/ubuntu/anaconda3/lib/python3.6/site-packages/tensorflow/python/training/monitored_session.py", line 1104, in run

raise six.reraise(*original_exc_info)


 "/home/ubuntu/anaconda3/lib/python3.6/site-packages/six.py", line 693, in reraise

raise value


 "/home/ubuntu/anaconda3/lib/python3.6/site-packages/tensorflow/python/training/monitored_session.py", line 1089, in run

return self._sess.run(*args, **kwargs)


 "/home/ubuntu/anaconda3/lib/python3.6/site-packages/tensorflow/python/training/monitored_session.py", line 1161, in run

run_metadata=run_metadata)


 "/home/ubuntu/anaconda3/lib/python3.6/site-packages/tensorflow/python/training/monitored_session.py", line 941, in run

return self._sess.run(*args, **kwargs)


 "/home/ubuntu/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 895, in run

run_metadata_ptr)


 "/home/ubuntu/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1128, in _run

feed_dict_tensor, options, run_metadata)


 "/home/ubuntu/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1344, in _do_run

options, run_metadata)


 "/home/ubuntu/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1363, in _do_call

raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.InvalidArgumentError: The node 'ppo/observe-timestep/cond/step_1/while/step/gradients/ppo/observe-timestep/cond/step_1/while/step/loss/predict/apply/apply_5/cond/dropout/div_grad/Shape/Switch' has inputs from different frames. The input 'ppo/observe-timestep/cond/step_1/while/step/loss/predict/apply/apply_5/cond/dropout/Shape/Switch' is in frame 'ppo/observe-timestep/cond/step_1/while/while_context'. The input 'ppo/observe-timestep/LogicalAnd_1' is in frame ''.

Traceback (most recent call last):


 "/home/user/py_env/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1322, in _do_call

return fn(*args)


 "/home/user/py_env/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1307, in _run_fn

options, feed_dict, fetch_list, target_list, run_metadata)


 "/home/user/py_env/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1409, in _call_tf_sessionrun

run_metadata)
tensorflow.python.framework.errors_impl.InvalidArgumentError: Assign requires shapes of both tensors to match. lhs shape= [24] rhs shape= [546]
