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