未验证 提交 008debe7 编写于 作者: T tianshuo78520a 提交者: GitHub

Mv inference ut (#52987)

* mv inference/api infer_ut

* mv test

* merge develop fix error

* fix

* fix build error

* fix build error

* fix bug

* fix tester_helper.h

* fix analyzer_transformer_profile_tester.cc

* fix

* fix mac

* fix mac

* fix error

* fix

* fix
上级 4efca9fb
......@@ -13,10 +13,6 @@
# limitations under the License.
#
if(WITH_TESTING)
include(tests/test.cmake) # some generic cmake function for inference
endif()
cc_library(
paddle_inference_io
SRCS io.cc
......@@ -91,10 +87,6 @@ endif()
# C inference API
add_subdirectory(capi_exp)
if(WITH_TESTING AND WITH_INFERENCE_API_TEST)
add_subdirectory(tests/api)
endif()
set(SHARED_INFERENCE_SRCS
io.cc
${CMAKE_CURRENT_SOURCE_DIR}/../framework/data_feed.cc
......
......@@ -36,84 +36,3 @@ cc_library(
analysis
SRCS analyzer.cc
DEPS ${analysis_deps} analysis_helper analysis_pass ${INFER_IR_PASSES})
function(inference_analysis_test_build TARGET)
if(WITH_TESTING)
set(options "")
set(oneValueArgs "")
set(multiValueArgs SRCS EXTRA_DEPS)
cmake_parse_arguments(analysis_test "${options}" "${oneValueArgs}"
"${multiValueArgs}" ${ARGN})
inference_base_test_build(
${TARGET}
SRCS
${analysis_test_SRCS}
DEPS
${analysis_test_EXTRA_DEPS}
analysis
pass
${GLOB_PASS_LIB})
endif()
endfunction()
function(inference_analysis_test_run TARGET)
if(WITH_TESTING)
set(options "")
set(oneValueArgs "")
set(multiValueArgs COMMAND ARGS)
cmake_parse_arguments(analysis_test "${options}" "${oneValueArgs}"
"${multiValueArgs}" ${ARGN})
inference_base_test_run(${TARGET} COMMAND ${analysis_test_COMMAND} ARGS
${analysis_test_ARGS})
set_tests_properties(${TARGET} PROPERTIES LABELS "RUN_TYPE=INFER")
endif()
endfunction()
function(inference_analysis_test TARGET)
if(WITH_TESTING)
set(options "")
set(oneValueArgs "")
set(multiValueArgs SRCS ARGS EXTRA_DEPS)
cmake_parse_arguments(analysis_test "${options}" "${oneValueArgs}"
"${multiValueArgs}" ${ARGN})
inference_base_test_build(
${TARGET}
SRCS
${analysis_test_SRCS}
DEPS
${analysis_test_EXTRA_DEPS}
analysis
pass
${GLOB_PASS_LIB})
inference_base_test_run(${TARGET} COMMAND ${TARGET} ARGS
${analysis_test_ARGS})
set_tests_properties(${TARGET} PROPERTIES LABELS "RUN_TYPE=INFER")
endif()
endfunction()
if(NOT APPLE AND NOT WIN32)
inference_analysis_test(
test_analyzer
SRCS
analyzer_tester.cc
EXTRA_DEPS
reset_tensor_array
paddle_inference_shared
ARGS
--inference_model_dir=${WORD2VEC_MODEL_DIR})
elseif(WIN32)
inference_analysis_test(
test_analyzer
SRCS
analyzer_tester.cc
EXTRA_DEPS
reset_tensor_array
paddle_inference_api
ARGS
--inference_model_dir=${WORD2VEC_MODEL_DIR})
if(WITH_ONNXRUNTIME AND WIN32)
# Copy onnxruntime for some c++ test in Windows, since the test will
# be build only in CI, so suppose the generator in Windows is Ninja.
copy_onnx(test_analyzer)
endif()
endif()
......@@ -97,85 +97,8 @@ else()
infer_io_utils model_utils)
endif()
cc_test(
test_paddle_inference_api
SRCS api_tester.cc
DEPS paddle_inference_api)
cc_test(
inference_api_helper_test
SRCS helper_test.cc
DEPS paddle_inference_api)
if(WITH_ONNXRUNTIME AND WIN32)
# Copy onnxruntime for some c++ test in Windows, since the test will
# be build only in CI, so suppose the generator in Windows is Ninja.
copy_onnx(test_paddle_inference_api)
endif()
if(WITH_TESTING)
if(NOT APPLE AND NOT WIN32)
inference_base_test(
test_api_impl
SRCS
api_impl_tester.cc
DEPS
paddle_inference_shared
ARGS
--word2vec_dirname=${WORD2VEC_MODEL_DIR}
--book_dirname=${IMG_CLS_RESNET_INSTALL_DIR})
elseif(WIN32)
inference_base_test(
test_api_impl
SRCS
api_impl_tester.cc
DEPS
${inference_deps}
ARGS
--word2vec_dirname=${WORD2VEC_MODEL_DIR}
--book_dirname=${IMG_CLS_RESNET_INSTALL_DIR})
endif()
endif()
if(NOT APPLE AND NOT WIN32)
cc_test_old(
test_analysis_predictor
SRCS
analysis_predictor_tester.cc
DEPS
paddle_inference_shared
ARGS
--dirname=${WORD2VEC_MODEL_DIR})
elseif(WIN32)
cc_test_old(
test_analysis_predictor
SRCS
analysis_predictor_tester.cc
DEPS
analysis_predictor
benchmark
${inference_deps}
ARGS
--dirname=${WORD2VEC_MODEL_DIR})
endif()
if(WITH_TESTING AND WITH_MKLDNN)
if(NOT APPLE AND NOT WIN32)
cc_test(
test_mkldnn_quantizer
SRCS mkldnn_quantizer_tester.cc
DEPS paddle_inference_shared ARGS --dirname=${WORD2VEC_MODEL_DIR})
elseif(WIN32)
cc_test(
test_mkldnn_quantizer
SRCS mkldnn_quantizer_tester.cc
DEPS analysis_predictor benchmark ${inference_deps} ARGS
--dirname=${WORD2VEC_MODEL_DIR})
endif()
endif()
if(WITH_TESTING AND TEST test_api_impl)
if(NOT APPLE)
set_tests_properties(test_api_impl PROPERTIES TIMEOUT 120)
endif()
endif()
......@@ -25,9 +25,9 @@
#include "paddle/fluid/inference/api/onnxruntime_predictor.h"
#include "paddle/fluid/inference/api/paddle_api.h"
#include "paddle/fluid/inference/api/paddle_inference_api.h"
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "paddle/fluid/inference/utils/io_utils.h"
#include "paddle/phi/backends/cpu/cpu_info.h"
#include "test/cpp/inference/api/tester_helper.h"
DEFINE_string(dirname, "", "dirname to tests.");
......
......@@ -3008,7 +3008,7 @@ EOF
echo "ipipe_log_param_Demo_Ci_Tests_Total_Time: $[ $demo_ci_endTime_s - $demo_ci_startTime_s ]s" >> ${PADDLE_ROOT}/build/build_summary.txt
infer_ut_startTime_s=`date +%s`
cd ${PADDLE_ROOT}/paddle/fluid/inference/tests/infer_ut
cd ${PADDLE_ROOT}/test/cpp/inference/infer_ut
./run.sh ${PADDLE_ROOT} ${WITH_MKL:-ON} ${WITH_GPU:-OFF} ${INFERENCE_DEMO_INSTALL_DIR} \
${TENSORRT_ROOT_DIR:-/usr} ${WITH_ONNXRUNTIME:-ON}
TEST_EXIT_CODE=$?
......
......@@ -4,3 +4,4 @@ add_subdirectory(new_executor)
add_subdirectory(prim)
add_subdirectory(imperative)
add_subdirectory(ir)
add_subdirectory(inference)
if(WITH_TESTING)
include(test.cmake) # some generic cmake function for inference
endif()
add_subdirectory(analysis)
add_subdirectory(api)
function(inference_analysis_test_build TARGET)
if(WITH_TESTING)
set(options "")
set(oneValueArgs "")
set(multiValueArgs SRCS EXTRA_DEPS)
cmake_parse_arguments(analysis_test "${options}" "${oneValueArgs}"
"${multiValueArgs}" ${ARGN})
inference_base_test_build(
${TARGET}
SRCS
${analysis_test_SRCS}
DEPS
${analysis_test_EXTRA_DEPS}
analysis
pass
${GLOB_PASS_LIB})
endif()
endfunction()
function(inference_analysis_test_run TARGET)
if(WITH_TESTING)
set(options "")
set(oneValueArgs "")
set(multiValueArgs COMMAND ARGS)
cmake_parse_arguments(analysis_test "${options}" "${oneValueArgs}"
"${multiValueArgs}" ${ARGN})
inference_base_test_run(${TARGET} COMMAND ${analysis_test_COMMAND} ARGS
${analysis_test_ARGS})
set_tests_properties(${TARGET} PROPERTIES LABELS "RUN_TYPE=INFER")
endif()
endfunction()
function(inference_analysis_test TARGET)
if(WITH_TESTING)
set(options "")
set(oneValueArgs "")
set(multiValueArgs SRCS ARGS EXTRA_DEPS)
cmake_parse_arguments(analysis_test "${options}" "${oneValueArgs}"
"${multiValueArgs}" ${ARGN})
inference_base_test_build(
${TARGET}
SRCS
${analysis_test_SRCS}
DEPS
${analysis_test_EXTRA_DEPS}
analysis
pass
${GLOB_PASS_LIB})
inference_base_test_run(${TARGET} COMMAND ${TARGET} ARGS
${analysis_test_ARGS})
set_tests_properties(${TARGET} PROPERTIES LABELS "RUN_TYPE=INFER")
endif()
endfunction()
if(NOT APPLE AND NOT WIN32)
inference_analysis_test(
test_analyzer
SRCS
analyzer_tester.cc
EXTRA_DEPS
reset_tensor_array
paddle_inference_shared
ARGS
--inference_model_dir=${WORD2VEC_MODEL_DIR})
elseif(WIN32)
inference_analysis_test(
test_analyzer
SRCS
analyzer_tester.cc
EXTRA_DEPS
reset_tensor_array
paddle_inference_api
ARGS
--inference_model_dir=${WORD2VEC_MODEL_DIR})
if(WITH_ONNXRUNTIME AND WIN32)
# Copy onnxruntime for some c++ test in Windows, since the test will
# be build only in CI, so suppose the generator in Windows is Ninja.
copy_onnx(test_analyzer)
endif()
endif()
此差异已折叠。
......@@ -27,9 +27,9 @@
#include "paddle/fluid/inference/api/helper.h"
#include "paddle/fluid/inference/api/paddle_api.h"
#include "paddle/fluid/inference/api/paddle_inference_api.h"
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "paddle/fluid/inference/utils/io_utils.h"
#include "paddle/phi/backends/cpu/cpu_info.h"
#include "test/cpp/inference/api/tester_helper.h"
DEFINE_string(dirname, "", "dirname to tests.");
......
......@@ -13,7 +13,7 @@
// limitations under the License.
#include "paddle/fluid/framework/transfer_scope_cache.h"
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -13,8 +13,8 @@ limitations under the License. */
#include <iostream>
#include "paddle/fluid/inference/api/paddle_analysis_config.h"
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "paddle/phi/backends/cpu/cpu_info.h"
#include "test/cpp/inference/api/tester_helper.h"
DEFINE_bool(enable_mkldnn, true, "Enable MKLDNN");
......
......@@ -24,7 +24,7 @@ limitations under the License. */
#endif
#include "paddle/fluid/inference/capi_exp/pd_inference_api.h"
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -20,7 +20,7 @@ limitations under the License. */
#include <vector>
#include "paddle/fluid/inference/capi_exp/pd_inference_api.h"
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -20,7 +20,7 @@
#include <vector>
#include "paddle/fluid/inference/capi_exp/pd_inference_api.h"
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -20,7 +20,7 @@ limitations under the License. */
#include <vector>
#include "paddle/fluid/inference/capi_exp/pd_inference_api.h"
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -23,7 +23,7 @@ limitations under the License. */
#include <vector>
#include "paddle/fluid/inference/capi_exp/pd_inference_api.h"
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -23,7 +23,7 @@ limitations under the License. */
#include <vector>
#include "paddle/fluid/inference/capi_exp/pd_inference_api.h"
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -21,7 +21,7 @@ limitations under the License. */
#include "paddle/fluid/inference/capi_exp/pd_config.h"
#include "paddle/fluid/inference/capi_exp/pd_inference_api.h"
#include "paddle/fluid/inference/capi_exp/pd_utils.h"
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -20,7 +20,7 @@ limitations under the License. */
#include <vector>
#include "paddle/fluid/inference/capi_exp/pd_inference_api.h"
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -20,7 +20,7 @@ limitations under the License. */
#include <vector>
#include "paddle/fluid/inference/capi/paddle_c_api.h"
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -20,7 +20,7 @@ limitations under the License. */
#include <vector>
#include "paddle/fluid/inference/capi/paddle_c_api.h"
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -20,7 +20,7 @@
#include <vector>
#include "paddle/fluid/inference/capi/paddle_c_api.h"
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -24,7 +24,7 @@ limitations under the License. */
#include "paddle/fluid/inference/capi/c_api_internal.h"
#include "paddle/fluid/inference/capi/paddle_c_api.h"
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -20,7 +20,7 @@ limitations under the License. */
#include <vector>
#include "paddle/fluid/inference/capi/paddle_c_api.h"
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -20,7 +20,7 @@ limitations under the License. */
#include <vector>
#include "paddle/fluid/inference/capi/paddle_c_api.h"
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -15,7 +15,7 @@
#include <vector>
#include "paddle/fluid/inference/analysis/helper.h"
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
const int FLAGS_max_turn_num = 1;
......
......@@ -17,8 +17,8 @@ limitations under the License. */
#include <fstream>
#include <iostream>
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "paddle/phi/common/place.h"
#include "test/cpp/inference/api/tester_helper.h"
DEFINE_string(infer_shape, "", "data shape file");
DEFINE_int32(sample, 20, "number of sample");
......
......@@ -17,7 +17,7 @@ limitations under the License. */
#include <fstream>
#include <iostream>
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
DEFINE_string(infer_shape, "", "data shape file");
DEFINE_int32(sample, 20, "number of sample");
......
......@@ -17,8 +17,8 @@
#include "paddle/fluid/framework/op_desc.h"
#include "paddle/fluid/framework/program_desc.h"
#include "paddle/fluid/framework/scope.h"
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "paddle/fluid/inference/utils/singleton.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -17,8 +17,8 @@
#include "paddle/fluid/framework/op_desc.h"
#include "paddle/fluid/framework/program_desc.h"
#include "paddle/fluid/framework/scope.h"
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "paddle/fluid/inference/utils/singleton.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "paddle/fluid/inference/tests/api/analyzer_ernie_tester.h"
#include "test/cpp/inference/api/analyzer_ernie_tester.h"
namespace paddle {
namespace inference {
......
......@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "paddle/fluid/inference/tests/api/analyzer_ernie_tester.h"
#include "test/cpp/inference/api/analyzer_ernie_tester.h"
namespace paddle {
namespace inference {
......
......@@ -14,7 +14,7 @@
#pragma once
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -15,7 +15,7 @@ limitations under the License. */
#include <fstream>
#include <iostream>
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
DEFINE_bool(disable_mkldnn_fc, false, "Disable usage of MKL-DNN's FC op");
......
......@@ -16,7 +16,7 @@ limitations under the License. */
#include <iostream>
#include "paddle/fluid/inference/api/paddle_analysis_config.h"
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
DEFINE_bool(enable_mkldnn, true, "Enable MKLDNN");
......
......@@ -16,7 +16,7 @@ limitations under the License. */
#include <iostream>
#include "paddle/fluid/inference/api/paddle_analysis_config.h"
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
DEFINE_bool(enable_mkldnn, true, "Enable MKLDNN");
......
......@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -16,7 +16,7 @@ limitations under the License. */
#include <iostream>
#include "paddle/fluid/inference/api/paddle_analysis_config.h"
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
// setting iterations to 0 means processing the whole dataset
namespace paddle {
......
......@@ -15,7 +15,7 @@
#include <random>
#include "paddle/fluid/framework/transfer_scope_cache.h"
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
// Here add missing commands
DEFINE_string(infer_model2, "", "model path");
......@@ -35,7 +35,9 @@ void SetConfig(AnalysisConfig* config, const std::string& infer_model) {
}
std::unique_ptr<PaddlePredictor> InitializePredictor(
const std::string& infer_model, std::vector<float>& data, bool use_mkldnn) {
const std::string& infer_model,
const std::vector<float>& data,
bool use_mkldnn) {
AnalysisConfig cfg;
SetConfig(&cfg, infer_model);
if (use_mkldnn) {
......
......@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -16,8 +16,8 @@
#include "paddle/fluid/framework/op_desc.h"
#include "paddle/fluid/framework/program_desc.h"
#include "paddle/fluid/framework/scope.h"
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "paddle/fluid/inference/utils/singleton.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -16,7 +16,7 @@ limitations under the License. */
#include <iostream>
#include "paddle/fluid/inference/api/paddle_analysis_config.h"
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
DEFINE_bool(enable_mkldnn, true, "Enable MKLDNN");
......
......@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
DEFINE_bool(with_precision_check, true, "turn on test");
......
......@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -13,7 +13,7 @@
// limitations under the License.
#include "paddle/fluid/inference/analysis/helper.h"
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -16,8 +16,8 @@ limitations under the License. */
#include <fstream>
#include <iostream>
#include "paddle/fluid/inference/tests/api/analyzer_seq_pool1_tester_helper.h"
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/analyzer_seq_pool1_tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -16,8 +16,8 @@ limitations under the License. */
#include <fstream>
#include <iostream>
#include "paddle/fluid/inference/tests/api/analyzer_seq_pool1_tester_helper.h"
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/analyzer_seq_pool1_tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -16,8 +16,8 @@ limitations under the License. */
#include <fstream>
#include <iostream>
#include "paddle/fluid/inference/tests/api/analyzer_seq_pool1_tester_helper.h"
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/analyzer_seq_pool1_tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -16,8 +16,8 @@ limitations under the License. */
#include <fstream>
#include <iostream>
#include "paddle/fluid/inference/tests/api/analyzer_seq_pool1_tester_helper.h"
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/analyzer_seq_pool1_tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -16,8 +16,8 @@ limitations under the License. */
#include <fstream>
#include <iostream>
#include "paddle/fluid/inference/tests/api/analyzer_seq_pool1_tester_helper.h"
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/analyzer_seq_pool1_tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -20,7 +20,7 @@ limitations under the License. */
#include <utility>
#include <vector>
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "paddle/fluid/inference/tests/api/analyzer_transformer_tester_helper.h"
#include "test/cpp/inference/api/analyzer_transformer_tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "paddle/fluid/inference/tests/api/analyzer_transformer_tester_helper.h"
#include "test/cpp/inference/api/analyzer_transformer_tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "paddle/fluid/inference/tests/api/analyzer_transformer_tester_helper.h"
#include "test/cpp/inference/api/analyzer_transformer_tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -16,7 +16,7 @@
#include <utility>
#include <vector>
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -17,7 +17,7 @@ limitations under the License. */
#include <fstream>
#include <iostream>
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -15,7 +15,7 @@ limitations under the License. */
#include <fstream>
#include <iostream>
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -16,8 +16,8 @@
#include "paddle/fluid/framework/op_desc.h"
#include "paddle/fluid/framework/program_desc.h"
#include "paddle/fluid/framework/scope.h"
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "paddle/fluid/inference/utils/singleton.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -20,7 +20,7 @@ limitations under the License. */
#include "gflags/gflags.h"
#include "paddle/fluid/framework/convert_utils.h"
#include "paddle/fluid/inference/api/api_impl.h"
#include "paddle/fluid/inference/tests/test_helper.h"
#include "test/cpp/inference/test_helper.h"
#ifdef __clang__
#define ACC_DIFF 4e-3
......
......@@ -13,7 +13,7 @@
// limitations under the License.
#include "paddle/fluid/inference/api/paddle_inference_api.h"
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -16,7 +16,7 @@ limitations under the License. */
#include <gtest/gtest.h>
#include "gflags/gflags.h"
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -18,7 +18,7 @@ limitations under the License. */
#include <cmath>
#include "gflags/gflags.h"
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -15,7 +15,7 @@ limitations under the License. */
#include <cmath>
#include "gflags/gflags.h"
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -20,7 +20,7 @@ limitations under the License. */
#include <thread> // NOLINT
#include "gflags/gflags.h"
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -18,7 +18,7 @@ limitations under the License. */
#include <cmath>
#include "gflags/gflags.h"
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -16,7 +16,7 @@ limitations under the License. */
#include <iostream>
#include "paddle/fluid/inference/api/paddle_mkldnn_quantizer_config.h"
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle {
namespace inference {
......
......@@ -22,8 +22,8 @@ limitations under the License. */
#include "gflags/gflags.h"
#include "glog/logging.h"
#include "paddle/fluid/inference/api/paddle_infer_contrib.h"
#include "paddle/fluid/inference/tests/api/trt_test_helper.h"
#include "paddle/fluid/platform/float16.h"
#include "test/cpp/inference/api/trt_test_helper.h"
namespace paddle_infer {
......
......@@ -16,7 +16,7 @@ limitations under the License. */
#include <gtest/gtest.h>
#include "gflags/gflags.h"
#include "paddle/fluid/inference/tests/api/tester_helper.h"
#include "test/cpp/inference/api/tester_helper.h"
namespace paddle_infer {
......
......@@ -35,10 +35,10 @@
#include "paddle/fluid/inference/api/helper.h"
#include "paddle/fluid/inference/api/paddle_inference_api.h"
#include "paddle/fluid/inference/api/paddle_inference_pass.h"
#include "paddle/fluid/inference/tests/api/config_printer.h"
#include "paddle/fluid/inference/tests/test_helper.h"
#include "paddle/fluid/inference/utils/benchmark.h"
#include "paddle/fluid/platform/profiler/event_tracing.h"
#include "test/cpp/inference/api/config_printer.h"
#include "test/cpp/inference/test_helper.h"
DEFINE_string(model_name, "", "model name");
DEFINE_string(infer_model, "", "model path");
......
......@@ -16,7 +16,7 @@ limitations under the License. */
#include <gtest/gtest.h>
#include "gflags/gflags.h"
#include "paddle/fluid/inference/tests/api/trt_test_helper.h"
#include "test/cpp/inference/api/trt_test_helper.h"
namespace paddle {
namespace inference {
......
......@@ -24,7 +24,7 @@ limitations under the License. */
#include <gtest/gtest.h>
#include "gflags/gflags.h"
#include "paddle/fluid/inference/tests/api/trt_dynamic_shape_ernie_serialize_deserialize_test.h"
#include "test/cpp/inference/api/trt_dynamic_shape_ernie_serialize_deserialize_test.h"
namespace paddle {
namespace inference {
......
......@@ -24,7 +24,7 @@ limitations under the License. */
#include <gtest/gtest.h>
#include "gflags/gflags.h"
#include "paddle/fluid/inference/tests/api/trt_dynamic_shape_ernie_serialize_deserialize_test.h"
#include "test/cpp/inference/api/trt_dynamic_shape_ernie_serialize_deserialize_test.h"
namespace paddle {
namespace inference {
......
......@@ -26,7 +26,7 @@ limitations under the License. */
#include <vector>
#include "gflags/gflags.h"
#include "paddle/fluid/inference/tests/api/trt_test_helper.h"
#include "test/cpp/inference/api/trt_test_helper.h"
namespace paddle {
namespace inference {
......
......@@ -17,7 +17,7 @@ limitations under the License. */
#include "gflags/gflags.h"
#include "paddle/fluid/inference/tensorrt/helper.h"
#include "paddle/fluid/inference/tests/api/trt_test_helper.h"
#include "test/cpp/inference/api/trt_test_helper.h"
namespace paddle {
namespace inference {
......
......@@ -16,7 +16,7 @@ limitations under the License. */
#include <gtest/gtest.h>
#include "gflags/gflags.h"
#include "paddle/fluid/inference/tests/api/trt_test_helper.h"
#include "test/cpp/inference/api/trt_test_helper.h"
namespace paddle {
namespace inference {
......
......@@ -16,7 +16,7 @@ limitations under the License. */
#include <gtest/gtest.h>
#include "gflags/gflags.h"
#include "paddle/fluid/inference/tests/api/trt_test_helper.h"
#include "test/cpp/inference/api/trt_test_helper.h"
namespace paddle {
namespace inference {
......
......@@ -16,7 +16,7 @@ limitations under the License. */
#include <gtest/gtest.h>
#include "gflags/gflags.h"
#include "paddle/fluid/inference/tests/api/trt_test_helper.h"
#include "test/cpp/inference/api/trt_test_helper.h"
namespace paddle {
namespace inference {
......
......@@ -16,7 +16,7 @@ limitations under the License. */
#include <gtest/gtest.h>
#include "gflags/gflags.h"
#include "paddle/fluid/inference/tests/api/trt_test_helper.h"
#include "test/cpp/inference/api/trt_test_helper.h"
namespace paddle {
namespace inference {
......
......@@ -16,7 +16,7 @@ limitations under the License. */
#include <gtest/gtest.h>
#include "gflags/gflags.h"
#include "paddle/fluid/inference/tests/api/trt_test_helper.h"
#include "test/cpp/inference/api/trt_test_helper.h"
namespace paddle {
namespace inference {
......
......@@ -18,7 +18,7 @@ limitations under the License. */
#include <numeric>
#include "gflags/gflags.h"
#include "paddle/fluid/inference/tests/api/trt_test_helper.h"
#include "test/cpp/inference/api/trt_test_helper.h"
namespace paddle {
namespace inference {
......
......@@ -15,7 +15,7 @@ limitations under the License. */
#include <numeric>
#include "gflags/gflags.h"
#include "paddle/fluid/inference/tests/api/trt_test_helper.h"
#include "test/cpp/inference/api/trt_test_helper.h"
namespace paddle {
namespace inference {
......
......@@ -16,7 +16,7 @@ limitations under the License. */
#include <gtest/gtest.h>
#include "gflags/gflags.h"
#include "paddle/fluid/inference/tests/api/trt_test_helper.h"
#include "test/cpp/inference/api/trt_test_helper.h"
namespace paddle {
namespace inference {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册