MCPcopy Index your code
hub / github.com/deepspeedai/DeepSpeedExamples / Logger

Class Logger

bing_bert/turing/logger.py:11–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9
10
11class Logger():
12 def __init__(self, cuda=False):
13 self.logger = logging.getLogger(__name__)
14 self.cuda = cuda
15
16 def info(self, message, *args, **kwargs):
17 if (self.cuda and dist.get_rank() == 0) or not self.cuda:
18 self.logger.info(message, *args, **kwargs)
19
20 def error(self, message, *args, **kwargs):
21 self.logger.error(message, *args, **kwargs)

Callers 1

construct_argumentsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected