浏览代码

fix tf policy for ghosts

/develop/add-fire/ghost
Andrew Cohen 4 年前
当前提交
71f9c241
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      ml-agents/mlagents/trainers/policy/tf_policy.py

2
ml-agents/mlagents/trainers/policy/tf_policy.py


tf.GraphKeys.TRAINABLE_VARIABLES, scope="lstm"
) # LSTMs need to be root scope for Barracuda export
# Create assignment ops for Ghost Trainer
self.init_load_weights()
self.inference_dict = {
"action": self.output,

# We do an initialize to make the Policy usable out of the box. If an optimizer is needed,
# it will re-load the full graph
self.initialize()
self.init_load_weights()
def _create_encoder(
self,

正在加载...
取消
保存