浏览代码

-

/exp-vince
vincentpierre 4 年前
当前提交
29f08b2e
共有 1 个文件被更改,包括 13 次插入3 次删除
  1. 16
      ml-agents/mlagents/trainers/trainer/rl_trainer.py

16
ml-agents/mlagents/trainers/trainer/rl_trainer.py


:param step_after_process: the step count after processing the next trajectory.
"""
if self._next_summary_step == 0: # Don't write out the first one
all_objects = muppy.get_objects()
self.past_sum = summary.summarize(all_objects)
print("\n ------------------------------------- ")
all_objects = muppy.get_objects()
sum1 = summary.summarize(all_objects)
summary.print_(sum1)
print("Total Memory in Python")
all_objects = muppy.get_objects()
sum1 = summary.summarize(all_objects)
summary.print_(sum1)
print("Diff Memory")
diff = summary.get_diff(sum1, self.past_sum)
summary.print_(diff)
self.past_sum = sum1
def _maybe_save_model(self, step_after_process: int) -> None:

正在加载...
取消
保存