浏览代码

fix entropy_sum after merge

/develop/action-spec-gym
Andrew Cohen 4 年前
当前提交
719d94e9
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 3
      ml-agents/mlagents/trainers/torch/utils.py

3
ml-agents/mlagents/trainers/torch/utils.py


all_probs = None
else:
all_probs = torch.cat(all_probs_list, dim=-1)
entropy_sum = torch.sum(entropies, dim=1)
return log_probs, entropy_sum, all_probs
return log_probs, entropies, all_probs
@staticmethod
def masked_mean(tensor: torch.Tensor, masks: torch.Tensor) -> torch.Tensor:

正在加载...
取消
保存