This repository was archived by the owner on Jan 24, 2024. It is now read-only.
add script for models repo stable#36
Merged
guochaorong merged 1 commit intoPaddlePaddle:developfrom May 10, 2018
Merged
Conversation
kolinwei
approved these changes
May 10, 2018
Superjomn
reviewed
May 10, 2018
| print('kpi:%s' % kpi_name) | ||
| if self.analysis_result[kpi_name]['change_rate'] > self.diff_thre: | ||
| suc = False | ||
| print("kpi: %s change_tate too bigger !!!!!!!!!!" % kpi_name) |
| suc = False | ||
| print("kpi: %s change_tate too bigger !!!!!!!!!!" % kpi_name) | ||
| else: | ||
| print('kpi:%s' % kpi_name) |
|
|
||
| def RunCmd(cmd, shellformat=True): | ||
| """run local cmd""" | ||
| p = subprocess.Popen(cmd, shell=shellformat, close_fds=True, stdin=subprocess.PIPE, \ |
| if args.task_dir: | ||
| tasks = args.task_dir.split() | ||
| return tasks | ||
| ret, out, err = RunCmd('''cd tasks; git diff HEAD^ HEAD | grep "diff --git" | awk -F' ' {'print $4'}''') |
Contributor
There was a problem hiding this comment.
用 XONSH,不需要再增加一种执行cmd的方法
熟悉XONSH http://xon.sh/
| tasks = get_changed_tasks(args) | ||
| times = args.times | ||
| for task in tasks: | ||
| try: |
Collaborator
Author
There was a problem hiding this comment.
这里等所有模型都跑完,输出所有错误模型再通知,似乎更好一些?~
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
resolve #28