提交 c9f8b87e 编写于 作者: X xiongkun 提交者: Wei Shengyu

fix by code review

上级 0f6d71f0
......@@ -4,7 +4,6 @@ import re
def parameter_parser():
import argparse
parser = argparse.ArgumentParser(description="Support Args:")
parser.add_argument(
"-v",
......
#!/bin/bash
source test_tipc/common_func.sh
function readlinkf() {
perl -MCwd -e 'print Cwd::abs_path shift' "$1";
}
function func_parser_config() {
strs=$1
IFS=" "
array=(${strs})
tmp=${array[2]}
echo ${tmp}
}
# always use the lite_train_lite_infer mode to speed. Modify the config file.
MODE=lite_train_lite_infer
BASEDIR=$(dirname "$0")
REPO_ROOT_PATH=$(readlinkf ${BASEDIR}/../)
echo $BASEDIR
echo $REPO_ROOT_PATH
FILENAME=$1
sed -i 's/gpu_list.*$/gpu_list:0/g' $FILENAME
......@@ -52,8 +36,8 @@ echo $cmd
eval $cmd
# analysis and compare the losses.
dyout=`cat $dy2static_output | python3 test_tipc/loss_filter.py -v 'Iter:' -e 'loss: {%f},'`
stout=`cat $dygraph_output | python3 test_tipc/loss_filter.py -v 'Iter:' -e 'loss: {%f},' `
dyout=`cat $dy2static_output | python3 test_tipc/extract_loss.py -v 'Iter:' -e 'loss: {%f},'`
stout=`cat $dygraph_output | python3 test_tipc/extract_loss.py -v 'Iter:' -e 'loss: {%f},' `
echo $dyout
echo $stout
if [ "$dyout" = "" ]; then
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册