浏览代码

fix sac precommit

/develop/add-fire/ghost
Andrew Cohen 4 年前
当前提交
0053713a
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 7
      ml-agents/mlagents/trainers/sac/trainer.py

7
ml-agents/mlagents/trainers/sac/trainer.py


)
def create_tf_policy(
self, parsed_behavior_id: BehaviorIdentifiers, behavior_spec: BehaviorSpec
self,
parsed_behavior_id: BehaviorIdentifiers,
behavior_spec: BehaviorSpec,
create_graph: bool = False,
) -> TFPolicy:
policy = TFPolicy(
self.seed,

reparameterize=True,
create_tf_graph=False,
create_tf_graph=create_graph,
)
self.maybe_load_replay_buffer()
return policy

正在加载...
取消
保存