Skip to content

Commit

Permalink
Fix undefined reference PD_IntArrayGetElementCount (PaddlePaddle#46662)
Browse files Browse the repository at this point in the history
* Fix undefined reference PD_IntArrayGetElementCount

* Delete PD_IntArrayGetSize Unused
  • Loading branch information
engineer1109 committed Sep 30, 2022
1 parent a6b4bee commit 2055a1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddle/phi/capi/lib/c_int_array.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ PD_List PD_IntArrayGetDataPointer(PD_IntArray* int_array) {
return list;
}

size_t PD_IntArrayGetSize(PD_IntArray* int_array) {
size_t PD_IntArrayGetElementCount(PD_IntArray* int_array) {
auto cc_int_array = reinterpret_cast<phi::IntArray*>(int_array);
return cc_int_array->size();
}
Expand Down

0 comments on commit 2055a1d

Please sign in to comment.