ValueError: Cannot feed value of shape (30, 1379) for Tensor 'input:0', which has shape '(?, 379)'
Closed this issue · 0 comments
when i run
python src/dialogue_system/run/run.py --saved_model=path_to_your_model --train_mode=1
i meet this
Traceback (most recent call last):
File "src/dialogue_system/run/run.py", line 160, in
run()
File "src/dialogue_system/run/run.py", line 156, in run
steward.simulate(agent=agent,epoch_number=simulate_epoch_number, train_mode=train_mode)
File "/mnt/c/Users/Admin/Desktop/rl/medi/MedicalChatbot-develop/src/dialogue_system/run/running_steward.py", line 56, in simulate
self.dialogue_manager.train()
File "/mnt/c/Users/Admin/Desktop/rl/medi/MedicalChatbot-develop/src/dialogue_system/dialogue_manager/dialogue_manager.py", line 113, in train
self.__train_dqn()
File "/mnt/c/Users/Admin/Desktop/rl/medi/MedicalChatbot-develop/src/dialogue_system/dialogue_manager/dialogue_manager.py", line 128, in __train_dqn
loss = self.state_tracker.agent.train(batch=batch)
File "/mnt/c/Users/Admin/Desktop/rl/medi/MedicalChatbot-develop/src/dialogue_system/agent/agent_dqn.py", line 56, in train
loss = self.dqn.singleBatch(batch=batch,params=self.parameter)
File "/mnt/c/Users/Admin/Desktop/rl/medi/MedicalChatbot-develop/src/dialogue_system/policy_learning/dqn.py", line 227, in singleBatch
next_Ys = self._predict_target(Xs=next_Xs,params=params)[0]
File "/mnt/c/Users/Admin/Desktop/rl/medi/MedicalChatbot-develop/src/dialogue_system/policy_learning/dqn.py", line 253, in _predict_target
Ys = self.session.run(self.target_output,feed_dict=feed_dict)
File "/home/hiep/.local/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 895, in run
run_metadata_ptr)
File "/home/hiep/.local/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1100, in _run
% (np_val.shape, subfeed_t.name, str(subfeed_t.get_shape())))
ValueError: Cannot feed value of shape (30, 1379) for Tensor 'input:0', which has shape '(?, 379)'