kaylode / theseus

General template for most Pytorch projects
MIT License
34 stars 6 forks source link

Add design pattern to logging module #9

Closed kaylode closed 2 years ago

kaylode commented 2 years ago
logger = LoggerObserver.getLogger("main") 
logger.subscribe(ImageWriter(savedir))
logger.subscribe(TensorboardLogger(savedir))
logger.log(figure)