未验证 提交 d6a02b88 编写于 作者: K Kaipeng Deng 提交者: GitHub

[Cherry pick] fix warning (#2536)

* fix warning
上级 0bcb3fd8
# OP docs may contains math formula which may cause
# DeprecationWarning in string parsing
import warnings
warnings.filterwarnings(
action='ignore', category=DeprecationWarning, module='ops')
from . import ops
from . import backbones
from . import necks
......
......@@ -22,10 +22,6 @@ parent_path = os.path.abspath(os.path.join(__file__, *(['..'] * 2)))
if parent_path not in sys.path:
sys.path.append(parent_path)
# ignore warning log
import warnings
warnings.filterwarnings('ignore')
import paddle
from ppdet.core.workspace import load_config, merge_config
......
......@@ -21,10 +21,6 @@ parent_path = os.path.abspath(os.path.join(__file__, *(['..'] * 2)))
if parent_path not in sys.path:
sys.path.append(parent_path)
# ignore warning log
import warnings
warnings.filterwarnings('ignore')
import paddle
from ppdet.core.workspace import load_config, merge_config
......
......@@ -21,9 +21,6 @@ parent_path = os.path.abspath(os.path.join(__file__, *(['..'] * 2)))
if parent_path not in sys.path:
sys.path.append(parent_path)
# ignore warning log
import warnings
warnings.filterwarnings('ignore')
import glob
import paddle
......
......@@ -22,9 +22,6 @@ parent_path = os.path.abspath(os.path.join(__file__, *(['..'] * 2)))
if parent_path not in sys.path:
sys.path.append(parent_path)
# ignore warning log
import warnings
warnings.filterwarnings('ignore')
import random
import numpy as np
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册