浏览代码

parallelize actor critic properly

/develop/add-fire/jit
Ervin Teng 5 年前
当前提交
00271147
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      ml-agents/mlagents/trainers/models_torch.py

2
ml-agents/mlagents/trainers/models_torch.py


fut = torch.jit._fork(
self.network_body, vec_inputs, vis_inputs, memories, sequence_length
)
embedding, memories = torch.jit._wait(fut)
embedding, memories = torch.jit._wait(fut)
return embedding, value_outputs, memories
@torch.jit.ignore

正在加载...
取消
保存