MCPcopy Create free account
hub / github.com/OpenBMB/BMTools / reset_format

Function reset_format

bmtools/utils/logging.py:242–250  ·  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

240
241
242def reset_format() -> None:
243 """
244 Resets the formatting for HuggingFace Transformers's loggers.
245 All handlers currently bound to the root logger are affected by this method.
246 """
247 handlers = _get_library_root_logger().handlers
248
249 for handler in handlers:
250 handler.setFormatter(None)
251
252
253def warning_advice(self, *args, **kwargs):

Callers

nothing calls this directly

Calls 1

_get_library_root_loggerFunction · 0.85

Tested by

no test coverage detected