Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add capi for fluid inference api #20092

Merged
merged 24 commits into from
Oct 5, 2019
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
cbd2aa3
add capi for fluid inference api, including AnalysisConfig, AnalysisP…
FrostML Sep 25, 2019
e8b8f3c
undo unexpected change caused by pre-commit
FrostML Sep 25, 2019
e2d23d0
undo unexpected changes caused by pre-commit
FrostML Sep 25, 2019
a0aeed4
add and fill CMakeLists.txt file
FrostML Sep 25, 2019
7accc6a
add subdirectory
FrostML Sep 25, 2019
af68090
fix some problem according to offline meeting
FrostML Sep 25, 2019
48768e8
delete some redundance
FrostML Sep 29, 2019
8b0a45d
delete some unexpected changes during programing
FrostML Sep 29, 2019
c4951c5
delete some useless comment and trigger ci, test=develop
FrostML Sep 29, 2019
15b8985
correct some namespace errors in c_api_internal.h
FrostML Sep 29, 2019
dcfdd63
correct the errors because of NHZIX's change about api EnableMemoryOptim
FrostML Sep 29, 2019
a6e669b
Merge branch 'develop' into infer_c_api update PaddlePaddle
FrostML Sep 29, 2019
89e1072
delete gtest include
FrostML Sep 29, 2019
c264b87
improve the coverages of unit tests
FrostML Sep 30, 2019
b9dad8f
correct Cmakelists file
FrostML Sep 30, 2019
a2f5e3b
correct Cmakelists file
FrostML Sep 30, 2019
82e2b11
trigger ci, test=develop
FrostML Sep 30, 2019
8fd9ea7
trigger ci, test=develop
FrostML Sep 30, 2019
8342483
trigger ci, test=develop
FrostML Sep 30, 2019
31da862
add more unit tests for ci converages, test=develop
FrostML Sep 30, 2019
2203a7f
add numeric for pd_predictor.cc, test=develop
FrostML Oct 1, 2019
bfa8064
deal with PADDLE_ENFORCE, test=develop
FrostML Oct 1, 2019
fc961c6
add the PADDLE_ENFORCE_NOT_NULL(config) for config in case the input …
FrostML Oct 1, 2019
6e6f3e6
for ci, test=develop
FrostML Oct 1, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
trigger ci, test=develop
  • Loading branch information
FrostML committed Sep 30, 2019
commit 83424838eba6031c05921db01c51b3c87096b413
3 changes: 2 additions & 1 deletion paddle/fluid/inference/capi/pd_predictor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ bool PD_PredictorZeroCopyRun(const PD_AnalysisConfig* config,
int osize = output_names.size();
*out_size = &osize;
for (int i = 0; i < osize; ++i) {
output[i].name = output_names[i];
snprintf(output[i].name, output_names[i].length() + 1, "%s",
output_names[i].c_str());
auto output_t = predictor->GetOutputTensor(output_names[i]);
output_t->copy_to_cpu(static_cast<void*>(output[i].data));
output[i].dtype = inputs[0].dtype;
Expand Down