报错位置
assert all([action_i in ACTION_MEANING.keys() for action_i in agents_action]), \
"Invalid action found in the list of sampled actions {}" \
". Valid actions are {}".format(agents_action, ACTION_MEANING.keys())
经检查,发现传给agents_action的数据形式错误
agents_action需要的是一维数组,数组长度根据智能体个数而定
故在赋值给agents_action前,将actions改为
actions = np.array(actions).flatten()
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)