浏览代码

buffer error

/develop/coma-noact
Andrew Cohen 4 年前
当前提交
e1fad8a4
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1
      ml-agents/mlagents/trainers/buffer.py
  2. 2
      ml-agents/mlagents/trainers/optimizer/torch_optimizer.py

1
ml-agents/mlagents/trainers/buffer.py


if key not in self.keys():
return False
if (length is not None) and (length != len(self[key])):
print(length, key, len(self[key]))
return False
length = len(self[key])
return True

2
ml-agents/mlagents/trainers/optimizer/torch_optimizer.py


if done:
for k in next_value_estimates:
if not self.reward_signals[k].ignore_done:
next_value_estimates[k] = np.array([0])
next_value_estimates[k][-1] = 0.0
return (
value_estimates,

正在加载...
取消
保存