未验证 提交 2af23549 编写于 作者: Y YUNSHEN XIE 提交者: GitHub

Optimizing prec process on windows (#33256)

* Optimizing prec process on windows

* fix bug
上级 93446be0
...@@ -179,7 +179,7 @@ class PRChecker(object): ...@@ -179,7 +179,7 @@ class PRChecker(object):
def get_comment_of_file(self, f): def get_comment_of_file(self, f):
#content = self.repo.get_contents(f.replace(PADDLE_ROOT, ''), 'pull/').decoded_content #content = self.repo.get_contents(f.replace(PADDLE_ROOT, ''), 'pull/').decoded_content
#todo: get file from github #todo: get file from github
with open(f) as fd: with open(f, encoding="utf-8") as fd:
lines = fd.readlines() lines = fd.readlines()
lineno = 1 lineno = 1
inputs = '' inputs = ''
......
...@@ -195,7 +195,7 @@ if [ ${WITH_GPU:-OFF} == "ON" ];then ...@@ -195,7 +195,7 @@ if [ ${WITH_GPU:-OFF} == "ON" ];then
num=$(ctest -N | awk -F ': ' '{print $2}' | sed '/^$/d' | sed '$d' | wc -l) num=$(ctest -N | awk -F ': ' '{print $2}' | sed '/^$/d' | sed '$d' | wc -l)
echo "Windows 1 card TestCases count is $num" echo "Windows 1 card TestCases count is $num"
if [ ${PRECISION_TEST:-OFF} == "ON" ]; then if [ ${PRECISION_TEST:-OFF} == "ON" ]; then
python ${PADDLE_ROOT}/tools/get_pr_ut.py python ${PADDLE_ROOT}/tools/get_pr_ut.py || echo "Failed to obtain ut_list !"
if [[ -f "ut_list" ]]; then if [[ -f "ut_list" ]]; then
echo "PREC length: "`wc -l ut_list` echo "PREC length: "`wc -l ut_list`
precision_cases=`cat ut_list` precision_cases=`cat ut_list`
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册