Skip to content

Commit

Permalink
[Change] 不再兼容旧格式示例代码 (PaddlePaddle#56573)
Browse files Browse the repository at this point in the history
* [Change] forbid legacy sample code style

* [Change] remove legacy sampcd_processor.py

* [Fix] fix command

* [Change] check plain style sample code

* [Fix] fix logger

* [Change] remove arguments

* [Change] remove cb_required

* [Change] change parse args

* [Change] restore creation.py
  • Loading branch information
megemini authored and BeingGod committed Sep 9, 2023
1 parent 02411b9 commit 662bf12
Show file tree
Hide file tree
Showing 6 changed files with 2,557 additions and 3,577 deletions.
4 changes: 2 additions & 2 deletions paddle/scripts/paddle_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3140,10 +3140,10 @@ function exec_samplecode_test() {

cd ${PADDLE_ROOT}/tools
if [ "$1" = "cpu" ] ; then
python sampcd_processor.py --debug cpu; example_error=$?
python sampcd_processor.py --debug --mode cpu; example_error=$?
elif [ "$1" = "gpu" ] ; then
SAMPLE_CODE_EXEC_THREADS=${SAMPLE_CODE_EXEC_THREADS:-2}
python sampcd_processor.py --threads=${SAMPLE_CODE_EXEC_THREADS} --debug gpu; example_error=$?
python sampcd_processor.py --threads=${SAMPLE_CODE_EXEC_THREADS} --debug --mode gpu; example_error=$?
fi
if [ "$example_error" != "0" ];then
echo "Code instance execution failed" >&2
Expand Down
Loading

0 comments on commit 662bf12

Please sign in to comment.