File tree Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ if(NOT WITH_FLUID_ONLY)
24
24
endif ()
25
25
26
26
add_subdirectory (testing )
27
+ set (PYTHON_TESTS_DIR ${PADDLE_BINARY_DIR} /python/paddle/fluid/tests CACHE INTERNAL "python tests directory" )
27
28
if (NOT MOBILE_INFERENCE AND NOT RPI AND NOT WITH_C_API )
28
29
add_subdirectory (fluid )
29
30
endif ()
Original file line number Diff line number Diff line change @@ -158,10 +158,13 @@ ParallelExecutor::ParallelExecutor(
158
158
var_infos.back ().persistable_ = node->Var ()->Persistable ();
159
159
}
160
160
}
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
+ }
165
168
}
166
169
167
170
if (exec_strategy.type_ == ExecutionStrategy::kDefault ) {
Original file line number Diff line number Diff line change @@ -61,8 +61,6 @@ cc_test(test_paddle_inference_api
61
61
62
62
inference_api_test (test_api_impl SRC api_impl_tester.cc
63
63
ARGS test_word2vec test_image_classification )
64
-
65
- set (PYTHON_TESTS_DIR ${PADDLE_BINARY_DIR} /python/paddle/fluid/tests )
66
64
cc_test (test_analysis_predictor SRCS analysis_predictor_tester.cc DEPS analysis_predictor ${inference_deps} paddle_inference_api
67
65
ARGS --dirname=${PYTHON_TESTS_DIR}/book )
68
66
Original file line number Diff line number Diff line change 1
- set (PYTHON_TESTS_DIR ${PADDLE_BINARY_DIR} /python/paddle/fluid/tests CACHE INTERNAL "python tests directory" )
2
-
3
1
file (GLOB TEST_OPS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR} " "test_*.py" )
4
2
string (REPLACE ".py" "" TEST_OPS "${TEST_OPS} " )
5
3
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- from plot import Ploter
15
+ from . plot import Ploter
16
16
__all__ = ['dump_config' , 'Ploter' ]
You can’t perform that action at this time.
0 commit comments