diff --git a/src/operators/kernel/cl/relu_kernel.cpp b/src/operators/kernel/cl/relu_kernel.cpp index c3acfe442201a9be59c6f0a0a536cf9aea68c4a2..dcd1275e3cf2fc7a226f32371e81b7b1ba91b9d2 100644 --- a/src/operators/kernel/cl/relu_kernel.cpp +++ b/src/operators/kernel/cl/relu_kernel.cpp @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ #ifdef RELU_OP -#include "operators/kernel/relu_kernel.h" +#include "operators/kernel/activation_kernel.h" namespace paddle_mobile { namespace operators { diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 75ad5348aa0743c081e2df3a59c190fa4c9a64f9..3128c003e2ef367b625ee03ea562f686eef9324e 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -30,6 +30,10 @@ if (CON GREATER -1) target_link_libraries(test-mobilenet-combine paddle-mobile) set(FOUND_MATCH ON) + # gen test + ADD_EXECUTABLE(test-mobilenetgpu net/test_mobilenet_GPU.cpp test_helper.h test_include.h) + target_link_libraries(test-mobilenetgpu paddle-mobile) + endif () list(FIND NET "yolo" CON) diff --git a/test/net/test_mobilenet_GPU.cpp b/test/net/test_mobilenet_GPU.cpp index e410baf77616584995f1e3687b47ca0af337a231..22ff12f592834efeab1566c2bd4fbd3b5c00dc26 100644 --- a/test/net/test_mobilenet_GPU.cpp +++ b/test/net/test_mobilenet_GPU.cpp @@ -25,11 +25,11 @@ int main() { paddle_mobile.SetCLPath("/data/local/tmp/bin"); #endif - auto isok = - paddle_mobile.Load(std::string(g_mobilenet_mul) + "/model", - std::string(g_mobilenet_mul) + "/params", true); + // auto isok = + // paddle_mobile.Load(std::string(g_mobilenet_mul) + "/model", + // std::string(g_mobilenet_mul) + "/params", true); - // auto isok = paddle_mobile.Load(std::string(g_mobilenet_mul), true); + auto isok = paddle_mobile.Load(std::string(g_mobilenet), true); if (isok) { auto time2 = paddle_mobile::time(); std::cout << "load cost :" << paddle_mobile::time_diff(time1, time2) << "ms"