浏览代码

Cleanup

/comms-grad
Ervin Teng 4 年前
当前提交
558bfb70
共有 1 个文件被更改,包括 4 次插入3 次删除
  1. 7
      ml-agents/mlagents/trainers/torch/networks.py

7
ml-agents/mlagents/trainers/torch/networks.py


def forward(
self,
all_net_inputs: List[List[torch.Tensor]],
net_inputs: List[List[torch.Tensor]],
all_net_inputs, actions, memories, sequence_length
net_inputs, actions, memories, sequence_length
)
output = self.value_heads(encoding)
return output, memories

@abc.abstractmethod
def forward(
self,
net_inputs: List[torch.Tensor],
vec_inputs: List[torch.Tensor],
vis_inputs: List[torch.Tensor],
masks: Optional[torch.Tensor] = None,
memories: Optional[torch.Tensor] = None,
) -> Tuple[torch.Tensor, int, int, int, int]:

正在加载...
取消
保存