浏览代码

forgot a file

/develop/rm-rf-new-models
vincentpierre 4 年前
当前提交
1a1070b1
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 3
      ml-agents/mlagents/trainers/tests/torch/saver/test_saver.py

3
ml-agents/mlagents/trainers/tests/torch/saver/test_saver.py


decision_step, _ = mb.create_steps_from_behavior_spec(
policy1.behavior_spec, num_agents=1
)
obs, masks = policy1._split_decision_step(decision_step)
obs = decision_step.obs
masks = policy1._extract_masks(decision_step)
memories = torch.as_tensor(
policy1.retrieve_memories(list(decision_step.agent_id))
).unsqueeze(0)

正在加载...
取消
保存