๐Ÿ˜‰/ํ”„๋กœ์ ํŠธ ์ฐธ๊ณ 

[ADD] ModifiedTensorboard object has no attribute '_write_logs' ์—๋Ÿฌ

ruhz 2020. 9. 25. 15:26

https://pythonprogramming.net/training-deep-q-learning-dqn-reinforcement-learning-python-tutorial/

# ModifiedTensorboard ํด๋ž˜์Šค์— ๋‹ค์Œ ๋ฉ”์†Œ๋“œ ์ถ”๊ฐ€
   def _write_logs(self, logs, index):
        for name, value in logs.items():
            if name in ['batch', 'size']:
                continue
            summary = tf.Summary()
            summary_value = summary.value.add()
            summary_value.simple_value = value
            summary_value.tag = name
            self.writer.add_summary(summary, index)
        self.writer.flush()