zhaiyi000 commented on issue #9268: URL: https://github.com/apache/tvm/issues/9268#issuecomment-944902602
@echuraev Thank you. `run(model, "metal")` works very well now. But execute `run(annotate(model, "coremlcompiler"), target_host)`, after the computer is compiled and uploaded, when executed on the iPhone, xcode throws an exception ``` 2021-10-16 19:30:00.082837+0800 tvmrpc[24033:5508426] [connection] nw_connection_copy_connected_path [C1] Client called nw_connection_copy_connected_path on unconnected nw_connection 2021-10-16 19:30:00.082914+0800 tvmrpc[24033:5508426] [] tcp_connection_is_cellular No connected path 2021-10-16 19:30:00.178449+0800 tvmrpc[24033:5508395] [connection] nw_endpoint_handler_set_adaptive_read_handler [C1 192.168.123.171:56605 ready socket-flow (satisfied (Path is satisfied), viable, interface: en0, scoped, ipv4, dns)] unregister notification for read_timeout failed 2021-10-16 19:30:00.178629+0800 tvmrpc[24033:5508395] [connection] nw_endpoint_handler_set_adaptive_write_handler [C1 192.168.123.171:56605 ready socket-flow (satisfied (Path is satisfied), viable, interface: en0, scoped, ipv4, dns)] unregister notification for write_timeout failed 2021-10-16 19:30:03.586896+0800 tvmrpc[24033:5508426] /Users/zy/Desktop/tvm/apps/ios_rpc_iphone12/tvmrpc/TVMRuntime.mm:82: Load module from /private/var/mobile/Containers/Data/Application/049E42F5-6672-4B0A-8D6E-95DE16CC4F9C/tmp/deploy.dylib ... 2021-10-16 19:30:04.436543+0800 tvmrpc[24033:5508426] (null) 2021-10-16 19:31:46.745035+0800 tvmrpc[24033:5508426] [connection] nw_connection_copy_connected_path [C2] Client called nw_connection_copy_connected_path on unconnected nw_connection 2021-10-16 19:31:46.745188+0800 tvmrpc[24033:5508426] [] tcp_connection_is_cellular No connected path 2021-10-16 19:31:46.746912+0800 tvmrpc[24033:5508395] [connection] nw_endpoint_handler_set_adaptive_read_handler [C2 192.168.123.171:56703 ready socket-flow (satisfied (Path is satisfied), viable, interface: en0, scoped, ipv4, dns)] unregister notification for read_timeout failed 2021-10-16 19:31:46.747127+0800 tvmrpc[24033:5508395] [connection] nw_endpoint_handler_set_adaptive_write_handler [C2 192.168.123.171:56703 ready socket-flow (satisfied (Path is satisfied), viable, interface: en0, scoped, ipv4, dns)] unregister notification for write_timeout failed 2021-10-16 19:31:51.136775+0800 tvmrpc[24033:5508426] Metal API Validation Enabled 2021-10-16 19:31:51.189247+0800 tvmrpc[24033:5508426] /Users/zy/Desktop/tvm/apps/ios_rpc_iphone12/tvmrpc/TVMRuntime.mm:82: Load module from /private/var/mobile/Containers/Data/Application/049E42F5-6672-4B0A-8D6E-95DE16CC4F9C/tmp/deploy.dylib ... 2021-10-16 19:31:55.656934+0800 tvmrpc[24033:5508426] (null) 2021-10-16 19:33:08.756917+0800 tvmrpc[24033:5508426] [connection] nw_connection_copy_connected_path [C3] Client called nw_connection_copy_connected_path on unconnected nw_connection 2021-10-16 19:33:08.757103+0800 tvmrpc[24033:5508426] [] tcp_connection_is_cellular No connected path 2021-10-16 19:33:08.759399+0800 tvmrpc[24033:5509574] [connection] nw_endpoint_handler_set_adaptive_read_handler [C3 192.168.123.171:56751 ready socket-flow (satisfied (Path is satisfied), viable, interface: en0, scoped, ipv4, dns)] unregister notification for read_timeout failed 2021-10-16 19:33:08.759617+0800 tvmrpc[24033:5509574] [connection] nw_endpoint_handler_set_adaptive_write_handler [C3 192.168.123.171:56751 ready socket-flow (satisfied (Path is satisfied), viable, interface: en0, scoped, ipv4, dns)] unregister notification for write_timeout failed 2021-10-16 19:33:32.324731+0800 tvmrpc[24033:5508426] [espresso] [Espresso::handle_ex_plan] exception=ANECF error: 2021-10-16 19:33:32.324791+0800 tvmrpc[24033:5508426] [coreml] Error plan build: -1. 2021-10-16 19:33:32.365495+0800 tvmrpc[24033:5508426] /Users/zy/Desktop/tvm/apps/ios_rpc_iphone12/tvmrpc/TVMRuntime.mm:82: Load module from /private/var/mobile/Containers/Data/Application/049E42F5-6672-4B0A-8D6E-95DE16CC4F9C/tmp/deploy.dylib ... 2021-10-16 19:33:32.688035+0800 tvmrpc[24033:5508426] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'data parameter is nil' *** First throw call stack: (0x195c5e708 0x1aa7687a8 0x196ef96cc 0x105723928 0x105723858 0x1057237c8 0x105723774 0x105722314 0x104dc47f4 0x104dc4420 0x10533042c 0x1055d70d4 0x1055d7030 0x1055d6fe4 0x1055d6fbc 0x1055d5b0c 0x105533908 0x10553387c 0x1055aedd8 0x1055fbc98 0x1055fbc58 0x1055fbbc8 0x1055fbb74 0x1055fa704 0x104dc47f4 0x104dc4420 0x10533042c 0x1055640a8 0x10559fa64 0x1055363a4 0x105533358 0x10552d2b8 0x10552e2f0 0x10555fda8 0x10555fcf0 0x10555fc60 0x10555fc0c 0x10555e510 0x104dc47f4 0x104dc4420 0x104dbce7c 0x104dbcc94 0x104dbb090 0x104dbb33c 0x195bf580c 0x195bf2168 0x195bf1f58 0x19637321c 0x19637de8c 0x195be3a30 0x195bd8990 0x195bd888c 0x195bd7b90 0x195bd1b70 0x195bd1308 0x196ec0d8c 0x104dba778 0x19703230c 0x1e19e8bfc 0x1e19f1758) libc++abi: terminating with uncaught exception of type NSException *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'data parameter is nil' terminating with uncaught exception of type NSException *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'data parameter is nil' terminating with uncaught exception of type NSException ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
