浏览代码

undo config change

/docs-update
Chris Elion 5 年前
当前提交
28c8319f
共有 1 个文件被更改,包括 1 次插入5 次删除
  1. 6
      ml-agents/tests/yamato/yamato_utils.py

6
ml-agents/tests/yamato/yamato_utils.py


configs = yaml.safe_load(f)
behavior_configs = configs["behaviors"]
for config_name, config in behavior_configs.items():
for config in behavior_configs.values():
# Backwards compat - also put each behavior at the top level for when
# we're running against old versions
configs[config_name] = config
with open(dest_path, "w") as f:
yaml.dump(configs, f)

正在加载...
取消
保存