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

This commit is contained in:
Mashiro 2023-01-06 15:40:35 +08:00 committed by GitHub
parent 136b45317b
commit f10b5cefd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 10 deletions

View File

@ -2,7 +2,7 @@
## Prerequisites
- Python 3.6+
- Python 3.7+
- PyTorch 1.6+
- CUDA 9.2+
- GCC 5.4+

View File

@ -2,7 +2,7 @@
### 环境依赖
- Python 3.6+
- Python 3.7+
- PyTorch 1.6+
- CUDA 9.2+
- GCC 5.4+

View File

@ -235,15 +235,12 @@ class MMLogger(Logger, ManagerMixin):
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)
if hasattr(self, '_cache'):
_accquire_lock()
# The same logic as `logging.Manager._clear_cache`.
for logger in MMLogger._instance_dict.values():
logger._cache.clear()
_release_lock()
_accquire_lock()
# The same logic as `logging.Manager._clear_cache`.
for logger in MMLogger._instance_dict.values():
logger._cache.clear()
_release_lock()
def print_log(msg,