MCPcopy
hub / github.com/NVIDIA-NeMo/Speech / warning

Method warning

nemo/utils/nemo_logging.py:398–408  ·  view source on GitHub ↗

Log 'msg % args' with severity 'WARNING'. To pass exception information, use the keyword argument exc_info with a true value, e.g. logger.warning("Houston, we have a %s", "bit of a problem", exc_info=1)

(self, msg, *args, mode=LogMode.EACH, **kwargs)

Source from the content-addressed store, hash-verified

396 self._logger._log(Logger.INFO, msg, args, **kwargs, stacklevel=2)
397
398 def warning(self, msg, *args, mode=LogMode.EACH, **kwargs):
399 """
400 Log 'msg % args' with severity 'WARNING'.
401
402 To pass exception information, use the keyword argument exc_info with
403 a true value, e.g.
404
405 logger.warning("Houston, we have a %s", "bit of a problem", exc_info=1)
406 """
407 if self._logger is not None and self._logger.isEnabledFor(Logger.WARNING) and not self._logged_once(msg, mode):
408 self._logger._log(Logger.WARNING, msg, args, **kwargs, stacklevel=2)
409
410 def error(self, msg, *args, mode=LogMode.EACH, **kwargs):
411 """

Callers 15

_showwarningMethod · 0.95
mainFunction · 0.80
get_iterator_k_splitFunction · 0.80
__init__Method · 0.80
verify_runtimeFunction · 0.80
ais_binaryFunction · 0.80
unique_names_checkFunction · 0.80
_convert_configFunction · 0.80
_on_batch_startMethod · 0.80
exp_managerFunction · 0.80

Calls 1

_logged_onceMethod · 0.95

Tested by 5

test_dataloaderMethod · 0.64
test_stepMethod · 0.64
test_dataloaderMethod · 0.64