Skip to content

Commit 618d7e3

Browse files
author
chengduozh
committed
Merge branch 'release/1.1' of https://github.com/PaddlePaddle/Paddle into fix_sum_op_bug_relase
test=release/1.1
2 parents 1c43ef4 + c5591f7 commit 618d7e3

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

paddle/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ if(NOT WITH_FLUID_ONLY)
2424
endif()
2525

2626
add_subdirectory(testing)
27+
set(PYTHON_TESTS_DIR ${PADDLE_BINARY_DIR}/python/paddle/fluid/tests CACHE INTERNAL "python tests directory")
2728
if(NOT MOBILE_INFERENCE AND NOT RPI AND NOT WITH_C_API)
2829
add_subdirectory(fluid)
2930
endif()

paddle/fluid/framework/parallel_executor.cc

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,13 @@ ParallelExecutor::ParallelExecutor(
158158
var_infos.back().persistable_ = node->Var()->Persistable();
159159
}
160160
}
161-
// If the loss_var_name is given, the number of graph should be only one.
162-
if (loss_var_name.size()) {
163-
PADDLE_ENFORCE_EQ(ir::GraphNum(*graph), 1,
164-
"The number of graph should be only one");
161+
162+
if (VLOG_IS_ON(5)) {
163+
// If the loss_var_name is given, the number of graph should be only one.
164+
if (loss_var_name.size()) {
165+
PADDLE_ENFORCE_EQ(ir::GraphNum(*graph), 1,
166+
"The number of graph should be only one");
167+
}
165168
}
166169

167170
if (exec_strategy.type_ == ExecutionStrategy::kDefault) {

paddle/fluid/inference/api/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ cc_test(test_paddle_inference_api
6161

6262
inference_api_test(test_api_impl SRC api_impl_tester.cc
6363
ARGS test_word2vec test_image_classification)
64-
65-
set(PYTHON_TESTS_DIR ${PADDLE_BINARY_DIR}/python/paddle/fluid/tests)
6664
cc_test(test_analysis_predictor SRCS analysis_predictor_tester.cc DEPS analysis_predictor ${inference_deps} paddle_inference_api
6765
ARGS --dirname=${PYTHON_TESTS_DIR}/book)
6866

python/paddle/fluid/tests/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
set(PYTHON_TESTS_DIR ${PADDLE_BINARY_DIR}/python/paddle/fluid/tests CACHE INTERNAL "python tests directory")
2-
31
file(GLOB TEST_OPS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "test_*.py")
42
string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}")
53

python/paddle/utils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from plot import Ploter
15+
from .plot import Ploter
1616
__all__ = ['dump_config', 'Ploter']

0 commit comments

Comments
 (0)