浏览代码

Edit types of Apped method

/develop/multitype-buffer
Ervin Teng 4 年前
当前提交
f5c180bc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      ml-agents/mlagents/trainers/buffer.py

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


def __str__(self):
return str(np.array(self).shape)
def append(self, element: Any, padding_value: float = 0.0) -> None:
def append(self, element: Any, padding_value: Any = 0.0) -> None:
"""
Adds an element to this AgentBuffer. Also lets you change the padding
type, so that it can be set on append (e.g. action_masks should

正在加载...
取消
保存