Skip to content

Commit 2e68abf

Browse files
committed
rename api.h to paddle_inference_api.h, put demo_ci in fluid_install_dir
1 parent 7b71976 commit 2e68abf

11 files changed

+13
-11
lines changed

cmake/inference_lib.cmake

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,10 @@ if (WITH_ANAKIN AND WITH_GPU)
149149
endif()
150150

151151
copy(inference_api_lib DEPS paddle_inference_api paddle_inference_api_shared
152-
SRCS ${src_dir}/${module}/api.h ${PADDLE_BINARY_DIR}/paddle/fluid/inference/api/libpaddle_inference_api*
153-
DSTS ${dst_dir}/inference ${dst_dir}/inference
152+
SRCS ${src_dir}/${module}/paddle_inference_api.h
153+
${src_dir}/${module}/demo_ci
154+
${PADDLE_BINARY_DIR}/paddle/fluid/inference/api/libpaddle_inference_api*
155+
DSTS ${dst_dir}/inference ${dst_dir}/inference ${dst_dir}/inference
154156
)
155157
list(APPEND inference_deps inference_api_lib)
156158

paddle/fluid/inference/api/api.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
See the License for the specific language governing permissions and
1313
limitations under the License. */
1414

15-
#include "paddle/fluid/inference/api/api.h"
15+
#include "paddle/fluid/inference/api/paddle_inference_api.h"
1616

1717
namespace paddle {
1818

paddle/fluid/inference/api/api_anakin_engine.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ limitations under the License. */
2020
#pragma once
2121

2222
#include <vector>
23-
#include "paddle/fluid/inference/api/api.h"
23+
#include "paddle/fluid/inference/api/paddle_inference_api.h"
2424

2525
// from anakin
2626
#include "framework/core/net/net.h"

paddle/fluid/inference/api/api_anakin_engine_tester.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ limitations under the License. */
1616
#include <glog/logging.h>
1717
#include <gtest/gtest.h>
1818

19-
#include "paddle/fluid/inference/api/api.h"
19+
#include "paddle/fluid/inference/api/paddle_inference_api.h"
2020

2121
DEFINE_string(model, "", "Directory of the inference model.");
2222

paddle/fluid/inference/api/api_impl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include <string>
2020
#include <vector>
2121

22-
#include "paddle/fluid/inference/api/api.h"
22+
#include "paddle/fluid/inference/api/paddle_inference_api.h"
2323

2424
#include "paddle/fluid/framework/ddim.h"
2525
#include "paddle/fluid/framework/lod_tensor.h"

paddle/fluid/inference/api/api_tensorrt_subgraph_engine.cc

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

15-
#include "paddle/fluid/inference/api/api.h"
1615
#include "paddle/fluid/inference/analysis/analyzer.h"
1716
#include "paddle/fluid/inference/api/api_impl.h"
17+
#include "paddle/fluid/inference/api/paddle_inference_api.h"
1818
#include "paddle/fluid/inference/utils/singleton.h"
1919

2020
namespace paddle {

paddle/fluid/inference/api/demo_ci/simple_on_word2vec.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ limitations under the License. */
2020
#include <glog/logging.h>
2121
#include <memory>
2222
#include <thread> //NOLINT
23-
#include "paddle/fluid/inference/api.h"
23+
#include "paddle/fluid/inference/paddle_inference_api.h"
2424
#include "paddle/fluid/platform/enforce.h"
2525

2626
DEFINE_string(dirname, "", "Directory of the inference model.");

paddle/fluid/inference/api/demo_ci/utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#include <algorithm>
1717
#include <string>
1818
#include <vector>
19-
#include "paddle/fluid/inference/api.h"
19+
#include "paddle/fluid/inference/paddle_inference_api.h"
2020

2121
namespace paddle {
2222
namespace demo {

paddle/fluid/inference/api/test_api.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ limitations under the License. */
1414

1515
#include <glog/logging.h>
1616
#include <gtest/gtest.h>
17-
#include "paddle/fluid/inference/api/api.h"
17+
#include "paddle/fluid/inference/api/paddle_inference_api.h"
1818

1919
namespace paddle {
2020

0 commit comments

Comments
 (0)