From 2055a1d2692c6d0f8e71e6e0def754dca0de1568 Mon Sep 17 00:00:00 2001 From: engineer1109 <1292846099@qq.com> Date: Fri, 30 Sep 2022 16:19:58 +0800 Subject: [PATCH] Fix undefined reference PD_IntArrayGetElementCount (#46662) * Fix undefined reference PD_IntArrayGetElementCount * Delete PD_IntArrayGetSize Unused --- paddle/phi/capi/lib/c_int_array.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/phi/capi/lib/c_int_array.cc b/paddle/phi/capi/lib/c_int_array.cc index 7562700372c..94c1f09201a 100644 --- a/paddle/phi/capi/lib/c_int_array.cc +++ b/paddle/phi/capi/lib/c_int_array.cc @@ -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(int_array); return cc_int_array->size(); } -- GitLab