浏览代码

Fixed discrete models

/develop/add-fire/export-discrete
Ervin Teng 4 年前
当前提交
da152b55
共有 1 个文件被更改,包括 9 次插入2 次删除
  1. 11
      ml-agents/mlagents/trainers/torch/model_serialization.py

11
ml-agents/mlagents/trainers/torch/model_serialization.py


+ ["action_masks", "memories"]
)
if self.policy.use_continuous_act:
action_name = "action"
action_prob_name = "action_probs"
else:
action_name = "action_unused"
action_prob_name = "action"
"action",
"action_probs",
action_name,
action_prob_name,
"version_number",
"memory_size",
"is_continuous_control",

正在加载...
取消
保存