FangyunWei / SLRT

236 stars 48 forks source link

NameError: name 'logger' is not defined #1

Closed supernova817 closed 1 year ago

supernova817 commented 1 year ago

I replaced "return logger" with "return Logger" and I didn't get the error.

https://github.com/FangyunWei/SLRT/blob/main/TwoStreamNetwork/utils/misc.py#L90

2000ZRL commented 1 year ago

You should not replace it with Logger. "logger" is a global variable, and please make sure you declare it before call the function get_logger().