MCPcopy
hub / github.com/huggingface/transformers / reset_format

Function reset_format

src/transformers/utils/logging.py:305–314  ·  view source on GitHub ↗

Resets the formatting for HuggingFace Transformers's loggers. All handlers currently bound to the root logger are affected by this method.

()

Source from the content-addressed store, hash-verified

303
304
305def reset_format() -> None:
306 """
307 Resets the formatting for HuggingFace Transformers's loggers.
308
309 All handlers currently bound to the root logger are affected by this method.
310 """
311 handlers = _get_library_root_logger().handlers
312
313 for handler in handlers:
314 handler.setFormatter(None)
315
316
317def warning_advice(self, *args, **kwargs):

Callers

nothing calls this directly

Calls 2

_get_library_root_loggerFunction · 0.85
setFormatterMethod · 0.80

Tested by

no test coverage detected