提交 ecbf6209 编写于 作者: Q qingqing01

Clean code

上级 cfd9dba0
......@@ -26,8 +26,6 @@ script:
- .travis/precommit.sh || exit_code=$(( exit_code | $? ))
- docker run -i --rm -v "$PWD:/py_unittest" paddlepaddle/paddle:latest /bin/bash -c
'cd /py_unittest; sh .travis/unittest.sh' || exit_code=$(( exit_code | $? ))
- |
script/deploy_doc.sh
notifications:
email:
......
......@@ -39,7 +39,6 @@ from ppdet.utils.check import check_gpu
from ppdet.modeling.model_input import create_feed
from ppdet.data.data_feed import create_reader
from ppdet.core.workspace import load_config, merge_config, create
from ppdet.utils.cli import print_total_cfg
from ppdet.utils.cli import ArgsParser
import logging
......@@ -61,7 +60,6 @@ def main():
merge_config(FLAGS.opt)
# check if set use_gpu=True in paddlepaddle cpu version
check_gpu(cfg.use_gpu)
print_total_cfg(cfg)
if 'eval_feed' not in cfg:
eval_feed = create(main_arch + 'EvalFeed')
......
......@@ -37,7 +37,6 @@ set_paddle_flags(
from paddle import fluid
from ppdet.utils.cli import print_total_cfg
from ppdet.core.workspace import load_config, merge_config, create
from ppdet.modeling.model_input import create_feed
from ppdet.data.data_feed import create_reader
......@@ -108,7 +107,6 @@ def main():
# check if set use_gpu=True in paddlepaddle cpu version
check_gpu(cfg.use_gpu)
print_total_cfg(cfg)
if 'test_feed' not in cfg:
test_feed = create(main_arch + 'TestFeed')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册