Add more algorithms
This commit is contained in:
18
lib/log_utils/print_logger.py
Normal file
18
lib/log_utils/print_logger.py
Normal file
@@ -0,0 +1,18 @@
|
||||
##################################################
|
||||
# Copyright (c) Xuanyi Dong [GitHub D-X-Y], 2019 #
|
||||
##################################################
|
||||
import importlib, warnings
|
||||
import os, sys, time, numpy as np
|
||||
|
||||
|
||||
class PrintLogger(object):
|
||||
|
||||
def __init__(self):
|
||||
"""Create a summary writer logging to log_dir."""
|
||||
self.name = 'PrintLogger'
|
||||
|
||||
def log(self, string):
|
||||
print (string)
|
||||
|
||||
def close(self):
|
||||
print ('-'*30 + ' close printer ' + '-'*30)
|
Reference in New Issue
Block a user