()
| 91 | import logging |
| 92 | import transformers |
| 93 | def enable_explicit_format(): |
| 94 | handlers = transformers.utils.logging._get_library_root_logger().handlers |
| 95 | |
| 96 | for handler in handlers: |
| 97 | formatter = logging.Formatter("[(%(levelname)s) %(pathname)s:%(lineno)s ] %(asctime)s >> %(message)s") |
| 98 | handler.setFormatter(formatter) |
| 99 | transformers.utils.logging.enable_explicit_format = enable_explicit_format |
| 100 | |
| 101 | def print_model_stats(model): |
nothing calls this directly
no outgoing calls
no test coverage detected