浏览代码

Add typing to value head creator

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

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


return recurrent_output, tf.concat([lstm_state_out.c, lstm_state_out.h], axis=1)
@staticmethod
def create_value_heads(stream_names, hidden_input):
def create_value_heads(
stream_names: List[str], hidden_input: tf.Tensor
) -> Tuple[Dict[str, tf.Tensor], tf.Tensor]:
"""
Creates one value estimator head for each reward signal in stream_names.
Also creates the node corresponding to the mean of all the value heads in self.value.

正在加载...
取消
保存