Skip to content

Commit

Permalink
Comment kaggle
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher committed Apr 5, 2022
1 parent d4e93b1 commit a5f8969
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ def is_writeable(dir, test=False):

def set_logging(name=None, verbose=VERBOSE):
# Sets level and returns logger
if is_kaggle():
for h in logging.root.handlers:
logging.root.removeHandler(h) # remove all handlers associated with the root logger object
# if is_kaggle():
# for h in logging.root.handlers:
# logging.root.removeHandler(h) # remove all handlers associated with the root logger object
rank = int(os.getenv('RANK', -1)) # rank in world for Multi-GPU trainings
level = logging.INFO if (verbose and rank in (-1, 0)) else logging.WARNING
log = logging.getLogger(name)
Expand Down

0 comments on commit a5f8969

Please sign in to comment.