浏览代码

Fix exporting again

/develop/add-fire/memoryclass
Ervin Teng 4 年前
当前提交
d0e6d92f
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 3
      ml-agents/mlagents/trainers/torch/networks.py

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


self.encoding_size = network_settings.memory.memory_size // 2
else:
self.encoding_size = network_settings.hidden_units
self.memory_size_param = torch.nn.Parameter(torch.Tensor([self.memory_size]))
if self.act_type == ActionType.CONTINUOUS:
self.distribution = GaussianDistribution(

sampled_actions,
log_probs,
self.version_number,
self.memory_size_param,
torch.Tensor([self.network_body.memory_size]),
self.is_continuous_int,
self.act_size_vector,
)

正在加载...
取消
保存