Skip to content

Commit 39c4921

Browse files
committed
Merge remote-tracking branch 'ups/develop' into refine/ut/lac
2 parents 5a2fc5b + f980b29 commit 39c4921

File tree

5 files changed

+22
-6
lines changed

5 files changed

+22
-6
lines changed

paddle/scripts/paddle_build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ function gen_capi_package() {
554554
function gen_fluid_inference_lib() {
555555
mkdir -p ${PADDLE_ROOT}/build
556556
cd ${PADDLE_ROOT}/build
557-
if [ ${WITH_C_API:-OFF} == "OFF" ] ; then
557+
if [[ ${WITH_C_API:-OFF} == "OFF" && ${WITH_INFERENCE:-ON} == "ON" ]] ; then
558558
cat <<EOF
559559
========================================
560560
Deploying fluid inference library ...
@@ -569,7 +569,7 @@ EOF
569569
}
570570

571571
function test_fluid_inference_lib() {
572-
if [ ${WITH_C_API:-OFF} == "OFF" ] ; then
572+
if [[ ${WITH_C_API:-OFF} == "OFF" && ${WITH_INFERENCE:-ON} == "ON" ]] ; then
573573
cat <<EOF
574574
========================================
575575
Testing fluid inference library ...

python/paddle/fluid/tests/book/high-level-api/image_classification/test_image_classification_resnet.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import paddle.fluid as fluid
1919
import paddle.fluid.core as core
2020
import numpy
21+
import six
2122
import os
2223
import cifar10_small_test_set
2324

@@ -177,4 +178,7 @@ def main(use_cuda, parallel):
177178
for parallel in (False, True):
178179
if use_cuda and not core.is_compiled_with_cuda():
179180
continue
180-
main(use_cuda=use_cuda, parallel=parallel)
181+
# TODO(minqiyang): remove this line after fixing the deletion
182+
# order problem of Scope in ParallelExecutor in manylinux
183+
if six.PY2:
184+
main(use_cuda=use_cuda, parallel=parallel)

python/paddle/fluid/tests/book/high-level-api/image_classification/test_image_classification_vgg.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import paddle.fluid as fluid
1919
import paddle.fluid.core as core
2020
import numpy
21+
import six
2122
import os
2223
import cifar10_small_test_set
2324

@@ -151,4 +152,7 @@ def main(use_cuda, parallel):
151152
for parallel in (False, True):
152153
if use_cuda and not core.is_compiled_with_cuda():
153154
continue
154-
main(use_cuda=use_cuda, parallel=parallel)
155+
# TODO(minqiyang): remove this line after fixing the deletion
156+
# order problem of Scope in ParallelExecutor in manylinux
157+
if six.PY2:
158+
main(use_cuda=use_cuda, parallel=parallel)

python/paddle/fluid/tests/book/high-level-api/recognize_digits/test_recognize_digits_conv.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import paddle.fluid as fluid
1919
import paddle.fluid.core as core
2020
import paddle
21+
import six
2122
import sys
2223
import numpy
2324
import unittest
@@ -154,4 +155,7 @@ def main(use_cuda, parallel):
154155
for parallel in (False, True):
155156
if use_cuda and not core.is_compiled_with_cuda():
156157
continue
157-
main(use_cuda=use_cuda, parallel=parallel)
158+
# TODO(minqiyang): remove this line after fixing the deletion
159+
# order problem of Scope in ParallelExecutor in manylinux
160+
if six.PY2:
161+
main(use_cuda=use_cuda, parallel=parallel)

python/paddle/fluid/tests/book/high-level-api/recognize_digits/test_recognize_digits_mlp.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import paddle.fluid as fluid
1919
import paddle.fluid.core as core
2020
import paddle
21+
import six
2122
import sys
2223
import numpy
2324
import unittest
@@ -136,4 +137,7 @@ def main(use_cuda, parallel):
136137
for parallel in (False, True):
137138
if use_cuda and not core.is_compiled_with_cuda():
138139
continue
139-
main(use_cuda=use_cuda, parallel=parallel)
140+
# TODO(minqiyang): remove this line after fixing the deletion
141+
# order problem of Scope in ParallelExecutor in manylinux
142+
if six.PY2:
143+
main(use_cuda=use_cuda, parallel=parallel)

0 commit comments

Comments
 (0)