Resets the formatting for HuggingFace Transformers's loggers. All handlers currently bound to the root logger are affected by this method.
()
| 303 | |
| 304 | |
| 305 | def 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 | |
| 317 | def warning_advice(self, *args, **kwargs): |
nothing calls this directly
no test coverage detected