mirror of
https://github.com/open-mmlab/mmengine.git
synced 2025-06-03 21:54:44 +08:00
[Docs] Clear the documentations about Python3.6 (#865)
This commit is contained in:
parent
136b45317b
commit
f10b5cefd9
@ -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 @@
|
|||||||
|
|
||||||
### 环境依赖
|
### 环境依赖
|
||||||
|
|
||||||
- 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):
|
|||||||
|
|
||||||
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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user