Skip to content
Snippets Groups Projects
Unverified Commit f10b5cef authored by Mashiro's avatar Mashiro Committed by GitHub
Browse files

[Docs] Clear the documentations about Python3.6 (#865)

parent 136b4531
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
## Prerequisites ## Prerequisites
- Python 3.6+ - Python 3.7+
- PyTorch 1.6+ - PyTorch 1.6+
- CUDA 9.2+ - CUDA 9.2+
- GCC 5.4+ - GCC 5.4+
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
### 环境依赖 ### 环境依赖
- Python 3.6+ - Python 3.7+
- PyTorch 1.6+ - PyTorch 1.6+
- CUDA 9.2+ - CUDA 9.2+
- GCC 5.4+ - GCC 5.4+
......
...@@ -235,15 +235,12 @@ class MMLogger(Logger, ManagerMixin): ...@@ -235,15 +235,12 @@ class MMLogger(Logger, ManagerMixin):
level must be an int or a str. level must be an int or a str.
""" """
# Compatible with python3.6. `logging.Logger` does not have
# `_cache` attribute in python3.6.
self.level = logging._checkLevel(level) self.level = logging._checkLevel(level)
if hasattr(self, '_cache'): _accquire_lock()
_accquire_lock() # The same logic as `logging.Manager._clear_cache`.
# The same logic as `logging.Manager._clear_cache`. for logger in MMLogger._instance_dict.values():
for logger in MMLogger._instance_dict.values(): logger._cache.clear()
logger._cache.clear() _release_lock()
_release_lock()
def print_log(msg, def print_log(msg,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment