浏览代码

Remove defaultdict that didn't make sense

/develop-newnormalization
Ervin Teng 5 年前
当前提交
400811b7
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 4
      ml-agents/mlagents/trainers/agent_processor.py

4
ml-agents/mlagents/trainers/agent_processor.py


"""
self.experience_buffers: Dict[str, List[AgentExperience]] = defaultdict(list)
self.last_brain_info: Dict[str, BrainInfo] = {}
self.last_take_action_outputs: Dict[str, ActionInfoOutputs] = defaultdict(
ActionInfoOutputs
)
self.last_take_action_outputs: Dict[str, ActionInfoOutputs] = {}
self.stats: Dict[str, List[float]] = defaultdict(list)
# Note: this is needed until we switch to AgentExperiences as the data input type.
# We still need some info from the policy (memories, previous actions)

正在加载...
取消
保存