浏览代码

Remove params from get_nowait

/develop/sac-apex
Ervin Teng 5 年前
当前提交
e5fbfc35
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      ml-agents/mlagents/trainers/agent_processor.py

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


def empty(self) -> bool:
return self._queue.empty()
def get_nowait(self, block: bool = True, timeout: float = None) -> T:
def get_nowait(self) -> T:
"""
Gets the next item from the queue, throwing an AgentManagerQueue.Empty exception
if the queue is empty.

正在加载...
取消
保存