浏览代码

Remove unused methods in trainer_controller.py (#4418)

/MLA-1734-demo-provider
GitHub 4 年前
当前提交
1076d275
共有 1 个文件被更改,包括 0 次插入16 次删除
  1. 16
      ml-agents/mlagents/trainers/trainer_controller.py

16
ml-agents/mlagents/trainers/trainer_controller.py


self.trainers[brain_name].save_model()
self.logger.info("Saved Model")
def _save_model_when_interrupted(self):
self.logger.info(
"Learning was interrupted. Please wait while the graph is generated."
)
self._save_models()
def _export_graph(self):
"""
Saves models for all trainers.
"""
if self.rank is not None and self.rank != 0:
return
for brain_name in self.trainers.keys():
self.trainers[brain_name].save_model()
@staticmethod
def _create_output_path(output_path):
try:

正在加载...
取消
保存