Crash in paddle::neon::DepthwiseConvKernel<3, 1>::run on Android and iOS apps
Created by: Xreki
When using Paddle to inference in mobile apps, and using mobilenet model, the app crash in paddle::neon::DepthwiseConvKernel<3, 1>::run
. The detail stack is listed as follows:
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x109dec000)
frame #0: 0x0000000104e70468 paddle-demo`paddle::neon::DepthwiseConvKernel<3, 1>::run(float const*, float const*, int, int, int, int, int, int, float*) + 384
frame #1: 0x0000000104e6fa88 paddle-demo`paddle::NeonDepthwiseConvFunction<(paddle::DeviceType)1>::calc(paddle::BufferArgs const&, paddle::BufferArgs const&) + 1472
frame #2: 0x0000000104ec3f80 paddle-demo`paddle::ExpandConvLayer::forward(paddle::enumeration_wrapper::PassType) + 868
frame #3: 0x0000000104f0fc20 paddle-demo`paddle::NeuralNetwork::forward(std::__1::vector<paddle::Argument, std::__1::allocator<paddle::Argument> > const&, std::__1::vector<paddle::Argument, std::__1::allocator<paddle::Argument> >*, paddle::enumeration_wrapper::PassType) + 380
frame #4: 0x0000000104d4e398 paddle-demo`paddle_gradient_machine_forward + 60
* frame #5: 0x0000000105003d1c paddle-demo`run() at ViewController.mm:107