Comments (10)
This error I have seen elsewhere sa well. Maybe Chen? I dont know Chen;s handle. @iseeyuan ?
from executorch.
Hi @adonnini,
Seems to be from https://github.com/pytorch/executorch/blob/main/runtime/executor/program.cpp#L316 but I can't see the exact log line. Could you please try this from main branch, and run ./install_requirements.sh
to make sure that we have the consistent pytorch and executorch version?
from executorch.
@kirklandsign
I cloned the main executorch branch and performed all the steps in
https://pytorch.org/executorch/stable/getting-started-setup.html
Everything seemed to work as expected.
Here is the result of ./install_requirements.sh
Successfully installed MarkupSafe-2.1.3 filelock-3.13.1 fsspec-2024.2.0 jinja2-3.1.3 mpmath-1.2.1 networkx-3.2.1 sympy-1.12 torch-2.3.0.dev20240229+cpu torchaudio-2.2.0.dev20240229+cpu typing-extensions-4.8.0
next, I ran my training module, including the executorch related code to build the lowered model.
The model file was produced successfully.
However when I attempted to load the lowered model and run it for inference from my Android application, execution failed with the same error. Please find the entire error log below.
Please let me know if you need addtional information, and what I should do next.
Thanks
ERROR LOG ATTEMPTING TO LOAD LOWERED MODEL
03-09 12:25:35.463: I/ETLOG(7403): Model file /data/user/0/com.android.contextq/files/locationInformation/tpt_delegate.pte is loaded.
03-09 12:25:35.463: I/ETLOG(7403): Setting up planned buffer 0, size 31460272.
03-09 12:25:35.475: I/ETLOG(7403): Constant buffer 1 out of program buffer range 0
03-09 12:25:35.475: I/ETLOG(7403): getTensorDataPtr() failed: 0x12
03-09 12:25:35.475: I/ETLOG(7403): Failed parsing tensor at index 0: 0x12
03-09 12:25:35.475: I/ETLOG(7403): In function CheckOk(), assert failed: hasValue_
03-09 12:25:35.476: A/libc(7403): Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 7432 (Thread-2), pid 7403 (lNetworkService)
03-09 12:25:35.528: I/crash_dump64(7914): obtaining output fd from tombstoned, type: kDebuggerdTombstoneProto
03-09 12:25:35.529: I/tombstoned(707): received crash request for pid 7432
03-09 12:25:35.530: I/crash_dump64(7914): performing dump of process 7403 (target tid = 7432)
03-09 12:25:35.762: A/DEBUG(7914): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
03-09 12:25:35.762: A/DEBUG(7914): Build fingerprint: 'Fairphone/FP4eea/FP4:13/TKQ1.230127.002/TP29:user/release-keys'
03-09 12:25:35.762: A/DEBUG(7914): Revision: '0'
03-09 12:25:35.762: A/DEBUG(7914): ABI: 'arm64'
03-09 12:25:35.762: A/DEBUG(7914): Timestamp: 2024-03-09 12:25:35.541386611+0100
03-09 12:25:35.762: A/DEBUG(7914): Process uptime: 366s
03-09 12:25:35.762: A/DEBUG(7914): Cmdline: com.android.contextq:ContextQNeuralNetworkService
03-09 12:25:35.762: A/DEBUG(7914): pid: 7403, tid: 7432, name: Thread-2 >>> com.android.contextq:ContextQNeuralNetworkService <<<
03-09 12:25:35.762: A/DEBUG(7914): uid: 10207
03-09 12:25:35.762: A/DEBUG(7914): signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
03-09 12:25:35.762: A/DEBUG(7914): x0 0000000000000000 x1 0000000000001d08 x2 0000000000000006 x3 0000006cf2f91320
03-09 12:25:35.762: A/DEBUG(7914): x4 60651f7371647272 x5 60651f7371647272 x6 60651f7371647272 x7 7f7f7f7f7f7f7f7f
03-09 12:25:35.762: A/DEBUG(7914): x8 00000000000000f0 x9 000000706db5cb28 x10 0000000000000001 x11 000000706db9c84c
03-09 12:25:35.762: A/DEBUG(7914): x12 0000006cf2f8f8f0 x13 0000000000000030 x14 0000006cf2f90c38 x15 0000000034155555
03-09 12:25:35.762: A/DEBUG(7914): x16 000000706dc04d68 x17 000000706dbe04e0 x18 0000006cf2448000 x19 0000000000001ceb
03-09 12:25:35.762: A/DEBUG(7914): x20 0000000000001d08 x21 00000000ffffffff x22 0000007080487870 x23 0000007080487870
03-09 12:25:35.762: A/DEBUG(7914): x24 0000006cf2f91cc0 x25 b400006eb61db0d0 x26 0000000000002071 x27 0000007080487850
03-09 12:25:35.762: A/DEBUG(7914): x28 0000006cf2f91b90 x29 0000006cf2f913a0
03-09 12:25:35.762: A/DEBUG(7914): lr 000000706db8d788 sp 0000006cf2f91300 pc 000000706db8d7b4 pst 0000000000001000
03-09 12:25:35.762: A/DEBUG(7914): backtrace:
03-09 12:25:35.762: A/DEBUG(7914): #00 pc 00000000000527b4 /apex/com.android.runtime/lib64/bionic/libc.so (abort+168) (BuildId: bf5f1ce73f89cca7d6a062eb7877e86a)
03-09 12:25:35.762: A/DEBUG(7914): #01 pc 0000000000b95590 /data/app/~~nuZwb5GEVeE5LCK-o_vC0g==/com.android.contextq-VusjC44pPRp2s2DHEvQm0g==/base.apk!libexecutorchdemo.so (et_pal_abort+8) (BuildId: 8065dc692f8e345f80fe49a1f2162d7e784b3499)
03-09 12:25:35.762: A/DEBUG(7914): #02 pc 0000000000b95398 /data/app/~~nuZwb5GEVeE5LCK-o_vC0g==/com.android.contextq-VusjC44pPRp2s2DHEvQm0g==/base.apk!libexecutorchdemo.so (torch::executor::runtime_abort()+8) (BuildId: 8065dc692f8e345f80fe49a1f2162d7e784b3499)
03-09 12:25:35.762: A/DEBUG(7914): #03 pc 0000000000b71c5c /data/app/~~nuZwb5GEVeE5LCK-o_vC0g==/com.android.contextq-VusjC44pPRp2s2DHEvQm0g==/base.apk!libexecutorchdemo.so (torch::executor::Result<torch::executor::Method>::CheckOk() const+152) (BuildId: 8065dc692f8e345f80fe49a1f2162d7e784b3499)
03-09 12:25:35.762: A/DEBUG(7914): #04 pc 0000000000b6e110 /data/app/~~nuZwb5GEVeE5LCK-o_vC0g==/com.android.contextq-VusjC44pPRp2s2DHEvQm0g==/base.apk!libexecutorchdemo.so (torch::executor::Result<torch::executor::Method>::get()+24) (BuildId: 8065dc692f8e345f80fe49a1f2162d7e784b3499)
03-09 12:25:35.762: A/DEBUG(7914): #05 pc 0000000000b6bcf4 /data/app/~~nuZwb5GEVeE5LCK-o_vC0g==/com.android.contextq-VusjC44pPRp2s2DHEvQm0g==/base.apk!libexecutorchdemo.so (executorch_jni::ExecuTorchJni::ExecuTorchJni(facebook::jni::alias_ref<_jstring*>, facebook::jni::alias_ref<facebook::jni::JMap<facebook::jni::JString, facebook::jni::JString> >)+2000) (BuildId: 8065dc692f8e345f80fe49a1f2162d7e784b3499)
03-09 12:25:35.762: A/DEBUG(7914): #06 pc 0000000000b6b28c /data/app/~~nuZwb5GEVeE5LCK-o_vC0g==/com.android.contextq-VusjC44pPRp2s2DHEvQm0g==/base.apk!libexecutorchdemo.so (facebook::jni::basic_strong_ref<facebook::jni::detail::HybridData, facebook::jni::LocalReferenceAllocator> facebook::jni::HybridClass<executorch_jni::ExecuTorchJni, facebook::jni::detail::BaseHybridClass>::makeCxxInstance<facebook::jni::alias_ref<_jstring*>&, facebook::jni::alias_ref<facebook::jni::JMap<facebook::jni::JString, facebook::jni::JString> >&>(facebook::jni::alias_ref<_jstring*>&, facebook::jni::alias_ref<facebook::jni::JMap<facebook::jni::JString, facebook::jni::JString> >&)+128) (BuildId: 8065dc692f8e345f80fe49a1f2162d7e784b3499)
03-09 12:25:35.762: A/DEBUG(7914): #07 pc 0000000000b6b07c /data/app/~~nuZwb5GEVeE5LCK-o_vC0g==/com.android.contextq-VusjC44pPRp2s2DHEvQm0g==/base.apk!libexecutorchdemo.so (executorch_jni::ExecuTorchJni::initHybrid(facebook::jni::alias_ref<_jclass*>, facebook::jni::alias_ref<_jstring*>, facebook::jni::alias_ref<facebook::jni::JMap<facebook::jni::JString, facebook::jni::JString> >)+52) (BuildId: 8065dc692f8e345f80fe49a1f2162d7e784b3499)
03-09 12:25:35.762: A/DEBUG(7914): #08 pc 0000000000b725a4 /data/app/~~nuZwb5GEVeE5LCK-o_vC0g==/com.android.contextq-VusjC44pPRp2s2DHEvQm0g==/base.apk!libexecutorchdemo.so (facebook::jni::detail::CallWithJniConversions<facebook::jni::basic_strong_ref<facebook::jni::detail::JTypeFor<facebook::jni::detail::HybridData, facebook::jni::JObject, void>::_javaobject*, facebook::jni::LocalReferenceAllocator> (*)(facebook::jni::alias_ref<_jclass*>, facebook::jni::alias_ref<_jstring*>, facebook::jni::alias_ref<facebook::jni::JMap<facebook::jni::JString, facebook::jni::JString> >), facebook::jni::basic_strong_ref<facebook::jni::detail::JTypeFor<facebook::jni::detail::HybridData, facebook::jni::JObject, void>::_javaobject*, facebook::jni::LocalReferenceAllocator>, _jclass*, facebook::jni::alias_ref<_jstring*>, facebook::jni::alias_ref<facebook::jni::JMap<facebook::jni::JString, facebook::jni::JString> > >::call(_jclass*, _jstring*, facebook::jni::detail::JTypeFor<facebook::jni::JMap<facebook::jni::JString, facebook::jni::JString>, facebook::jni::JObject, void>::_javaobject*, facebook::jni::basic_strong_ref<facebook::jni::detail::JTypeFor<facebook::jni::detail::HybridData, facebook::jni::JObject, void>::_javaobject*, facebook::jni::LocalReferenceAllocator> (*)(facebook::jni::alias_ref<_jclass*>, facebook::jni::alias_ref<_jstring*>, facebook::jni::alias_ref<facebook::jni::JMap<facebook::jni::JString, facebook::jni::JString> >))+136) (BuildId: 8065dc692f8e345f80fe49a1f2162d7e784b3499)
03-09 12:25:35.762: A/DEBUG(7914): #09 pc 0000000000b6b128 /data/app/~~nuZwb5GEVeE5LCK-o_vC0g==/com.android.contextq-VusjC44pPRp2s2DHEvQm0g==/base.apk!libexecutorchdemo.so (facebook::jni::detail::FunctionWrapper<facebook::jni::basic_strong_ref<facebook::jni::detail::JTypeFor<facebook::jni::detail::HybridData, facebook::jni::JObject, void>::_javaobject*, facebook::jni::LocalReferenceAllocator> (*)(facebook::jni::alias_ref<_jclass*>, facebook::jni::alias_ref<_jstring*>, facebook::jni::alias_ref<facebook::jni::JMap<facebook::jni::JString, facebook::jni::JString> >), _jclass*, facebook::jni::basic_strong_ref<facebook::jni::detail::JTypeFor<facebook::jni::detail::HybridData, facebook::jni::JObject, void>::_javaobject*, facebook::jni::LocalReferenceAllocator>, facebook::jni::alias_ref<_jstring*>, facebook::jni::alias_ref<facebook::jni::JMap<facebook::jni::JString, facebook::jni::JString> > >::call(_JNIEnv*, _jobject*, _jstring*, facebook::jni::detail::JTypeFor<facebook::jni::JMap<facebook::jni::JString, facebook::jni::JString>, facebook::jni::JObject, void>::_javaobject*, facebook::jni::basic_strong_ref<facebook::jni::detail::JTypeFor<facebook::jni::detail::HybridData, facebook::jni::JObject, void>::_javaobject*, facebook::jni::LocalReferenceAllocator> (*)(facebook::jni::alias_ref<_jclass*>, facebook::jni::alias_ref<_jstring*>, facebook::jni::alias_ref<facebook::jni::JMap<facebook::jni::JString, facebook::jni::JString> >))+72) (BuildId: 8065dc692f8e345f80fe49a1f2162d7e784b3499)
03-09 12:25:35.762: A/DEBUG(7914): #10 pc 0000000000b6a718 /data/app/~~nuZwb5GEVeE5LCK-o_vC0g==/com.android.contextq-VusjC44pPRp2s2DHEvQm0g==/base.apk!libexecutorchdemo.so (facebook::jni::detail::FunctionWrapperWithJniEntryPoint<facebook::jni::basic_strong_ref<facebook::jni::detail::JTypeFor<facebook::jni::detail::HybridData, facebook::jni::JObject, void>::_javaobject*, facebook::jni::LocalReferenceAllocator> (*)(facebook::jni::alias_ref<_jclass*>, facebook::jni::alias_ref<_jstring*>, facebook::jni::alias_ref<facebook::jni::JMap<facebook::jni::JString, facebook::jni::JString> >), &(executorch_jni::ExecuTorchJni::initHybrid(facebook::jni::alias_ref<_jclass*>, facebook::jni::alias_ref<_jstring*>, facebook::jni::alias_ref<facebook::jni::JMap<facebook::jni::JString, facebook::jni::JString> >)), _jclass*, facebook::jni::basic_strong_ref<facebook::jni::detail::JTypeFor<facebook::jni::detail::HybridData, facebook::jni::JObject, void>::_javaobject*, facebook::jni::LocalReferenceAllocator>, facebook::jni::alias_ref<_jstring*>, facebook::jni::alias_ref<facebook::jni::JMap<facebook::jni::JString, facebook::jni::JString> > >::call(_JNIEnv*, _jobject*, _jstring*, facebook::jni::detail::JTypeFor<facebook::jni::JMap<facebook::jni::JString, facebook::jni::JString>, facebook::jni::JObject, void>::_javaobject*)+52) (BuildId: 8065dc692f8e345f80fe49a1f2162d7e784b3499)
03-09 12:25:35.762: A/DEBUG(7914): #11 pc 0000000000355630 /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+144) (BuildId: 02bec5940be704b863f6514fc7d81c41)
03-09 12:25:35.762: A/DEBUG(7914): #12 pc 000000000033ee80 /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+640) (BuildId: 02bec5940be704b863f6514fc7d81c41)
03-09 12:25:35.762: A/DEBUG(7914): #13 pc 0000000000512ba8 /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, bool, art::JValue*)+2364) (BuildId: 02bec5940be704b863f6514fc7d81c41)
03-09 12:25:35.762: A/DEBUG(7914): #14 pc 00000000004961dc /apex/com.android.art/lib64/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false>(art::interpreter::SwitchImplContext*)+1892) (BuildId: 02bec5940be704b863f6514fc7d81c41)
03-09 12:25:35.762: A/DEBUG(7914): #15 pc 0000000000357dd8 /apex/com.android.art/lib64/libart.so (ExecuteSwitchImplAsm+8) (BuildId: 02bec5940be704b863f6514fc7d81c41)
03-09 12:25:35.762: A/DEBUG(7914): #16 pc 0000000000042d7c [anon:dalvik-classes11.dex extracted in memory from /data/app/~~nuZwb5GEVeE5LCK-o_vC0g==/com.android.contextq-VusjC44pPRp2s2DHEvQm0g==/base.apk!classes11.dex] (com.example.executorchdemo.executor.NativePeer.<init>+0)
03-09 12:25:35.762: A/DEBUG(7914): #17 pc 0000000000371b14 /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.__uniq.112435418011751916792819755956732575238.llvm.8722505846101882172)+232) (BuildId: 02bec5940be704b863f6514fc7d81c41)
03-09 12:25:35.762: A/DEBUG(7914): #18 pc 00000000005136f0 /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, bool, art::JValue*)+5252) (BuildId: 02bec5940be704b863f6514fc7d81c41)
03-09 12:25:35.762: A/DEBUG(7914): #19 pc 00000000004962a4 /apex/com.android.art/lib64/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false>(art::interpreter::SwitchImplContext*)+2092) (BuildId: 02bec5940be704b863f6514fc7d81c41)
03-09 12:25:35.762: A/DEBUG(7914): #20 pc 0000000000357dd8 /apex/com.android.art/lib64/libart.so (ExecuteSwitchImplAsm+8) (BuildId: 02bec5940be704b863f6514fc7d81c41)
03-09 12:25:35.762: A/DEBUG(7914): #21 pc 0000000000042ce4 [anon:dalvik-classes11.dex extracted in memory from /data/app/~~nuZwb5GEVeE5LCK-o_vC0g==/com.android.contextq-VusjC44pPRp2s2DHEvQm0g==/base.apk!classes11.dex] (com.example.executorchdemo.executor.Module.load+0)
03-09 12:25:35.762: A/DEBUG(7914): #22 pc 0000000000371b14 /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.__uniq.112435418011751916792819755956732575238.llvm.8722505846101882172)+232) (BuildId: 02bec5940be704b863f6514fc7d81c41)
03-09 12:25:35.762: A/DEBUG(7914): #23 pc 00000000005136f0 /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, bool, art::JValue*)+5252) (BuildId: 02bec5940be704b863f6514fc7d81c41)
03-09 12:25:35.762: A/DEBUG(7914): #24 pc 00000000004961dc /apex/com.android.art/lib64/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false>(art::interpreter::SwitchImplContext*)+1892) (BuildId: 02bec5940be704b863f6514fc7d81c41)
03-09 12:25:35.762: A/DEBUG(7914): #25 pc 0000000000357dd8 /apex/com.android.art/lib64/libart.so (ExecuteSwitchImplAsm+8) (BuildId: 02bec5940be704b863f6514fc7d81c41)
03-09 12:25:35.762: A/DEBUG(7914): #26 pc 0000000000042cc8 [anon:dalvik-classes11.dex extracted in memory from /data/app/~~nuZwb5GEVeE5LCK-o_vC0g==/com.android.contextq-VusjC44pPRp2s2DHEvQm0g==/base.apk!classes11.dex] (com.example.executorchdemo.executor.Module.load+0)
03-09 12:25:35.762: A/DEBUG(7914): #27 pc 0000000000371b14 /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.__uniq.112435418011751916792819755956732575238.llvm.8722505846101882172)+232) (BuildId: 02bec5940be704b863f6514fc7d81c41)
03-09 12:25:35.762: A/DEBUG(7914): #28 pc 00000000005136f0 /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, bool, art::JValue*)+5252) (BuildId: 02bec5940be704b863f6514fc7d81c41)
03-09 12:25:35.762: A/DEBUG(7914): #29 pc 00000000004961dc /apex/com.android.art/lib64/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false>(art::interpreter::SwitchImplContext*)+1892) (BuildId: 02bec5940be704b863f6514fc7d81c41)
03-09 12:25:35.762: A/DEBUG(7914): #30 pc 0000000000357dd8 /apex/com.android.art/lib64/libart.so (ExecuteSwitchImplAsm+8) (BuildId: 02bec5940be704b863f6514fc7d81c41)
03-09 12:25:35.762: A/DEBUG(7914): #31 pc 000000000000d530 [anon:dalvik-classes15.dex extracted in memory from /data/app/~~nuZwb5GEVeE5LCK-o_vC0g==/com.android.contextq-VusjC44pPRp2s2DHEvQm0g==/base.apk!classes15.dex] (com.android.contextq.neuralnetwork.NeuralNetworkService.neuralNetworkloadAndRunPytorch+0)
03-09 12:25:35.762: A/DEBUG(7914): #32 pc 0000000000371b14 /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.__uniq.112435418011751916792819755956732575238.llvm.8722505846101882172)+232) (BuildId: 02bec5940be704b863f6514fc7d81c41)
03-09 12:25:35.762: A/DEBUG(7914): #33 pc 00000000005136f0 /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, bool, art::JValue*)+5252) (BuildId: 02bec5940be704b863f6514fc7d81c41)
03-09 12:25:35.762: A/DEBUG(7914): #34 pc 00000000004961dc /apex/com.android.art/lib64/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false>(art::interpreter::SwitchImplContext*)+1892) (BuildId: 02bec5940be704b863f6514fc7d81c41)
03-09 12:25:35.762: A/DEBUG(7914): #35 pc 0000000000357dd8 /apex/com.android.art/lib64/libart.so (ExecuteSwitchImplAsm+8) (BuildId: 02bec5940be704b863f6514fc7d81c41)
03-09 12:25:35.762: A/DEBUG(7914): #36 pc 0000000000007d4c [anon:dalvik-classes15.dex extracted in memory from /data/app/~~nuZwb5GEVeE5LCK-o_vC0g==/com.android.contextq-VusjC44pPRp2s2DHEvQm0g==/base.apk!classes15.dex] (com.android.contextq.neuralnetwork.NeuralNetworkService$NeuralNetworkServiceRunnable.run+0)
03-09 12:25:35.762: A/DEBUG(7914): #37 pc 0000000000371b14 /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.__uniq.112435418011751916792819755956732575238.llvm.8722505846101882172)+232) (BuildId: 02bec5940be704b863f6514fc7d81c41)
03-09 12:25:35.762: A/DEBUG(7914): #38 pc 00000000005136f0 /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, bool, art::JValue*)+5252) (BuildId: 02bec5940be704b863f6514fc7d81c41)
03-09 12:25:35.762: A/DEBUG(7914): #39 pc 0000000000496d1c /apex/com.android.art/lib64/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false>(art::interpreter::SwitchImplContext*)+4772) (BuildId: 02bec5940be704b863f6514fc7d81c41)
03-09 12:25:35.762: A/DEBUG(7914): #40 pc 0000000000357dd8 /apex/com.android.art/lib64/libart.so (ExecuteSwitchImplAsm+8) (BuildId: 02bec5940be704b863f6514fc7d81c41)
03-09 12:25:35.762: A/DEBUG(7914): #41 pc 000000000000308c [anon:dalvik-/apex/com.android.art/javalib/core-oj.jar-transformed] (java.lang.Thread.run+0)
03-09 12:25:35.762: A/DEBUG(7914): #42 pc 0000000000371b14 /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.__uniq.112435418011751916792819755956732575238.llvm.8722505846101882172)+232) (BuildId: 02bec5940be704b863f6514fc7d81c41)
03-09 12:25:35.762: A/DEBUG(7914): #43 pc 000000000037140c /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+964) (BuildId: 02bec5940be704b863f6514fc7d81c41)
03-09 12:25:35.762: A/DEBUG(7914): #44 pc 0000000000355768 /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 02bec5940be704b863f6514fc7d81c41)
03-09 12:25:35.762: A/DEBUG(7914): #45 pc 000000000033eba4 /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+612) (BuildId: 02bec5940be704b863f6514fc7d81c41)
03-09 12:25:35.762: A/DEBUG(7914): #46 pc 000000000023a9ac /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+144) (BuildId: 02bec5940be704b863f6514fc7d81c41)
03-09 12:25:35.762: A/DEBUG(7914): #47 pc 000000000053b96c /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallback(void*)+1600) (BuildId: 02bec5940be704b863f6514fc7d81c41)
03-09 12:25:35.762: A/DEBUG(7914): #48 pc 00000000000ba650 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+208) (BuildId: bf5f1ce73f89cca7d6a062eb7877e86a)
03-09 12:25:35.762: A/DEBUG(7914): #49 pc 0000000000053ffc /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+68) (BuildId: bf5f1ce73f89cca7d6a062eb7877e86a)
03-09 12:25:35.774: E/tombstoned(707): Tombstone written to: tombstone_12
from executorch.
what does the graph look like after you run to_backend
?
from executorch.
@cccclai Forgive my ignorance. What do you mean exactly when you say:
what does the graph look like after you run to_backend?
?
Thanks
from executorch.
what does you code look like around call-site to_backend
?
from executorch.
Here is my code:
pre_autograd_aten_dialect = capture_pre_autograd_graph(m, (enc_input, dec_input, dec_source_mask, dec_target_mask))
aten_dialect: ExportedProgram = export(pre_autograd_aten_dialect, (enc_input, dec_input, dec_source_mask, dec_target_mask), strict=False)
edge_program: EdgeProgramManager = to_edge(aten_dialect)
to_be_lowered_module = edge_program.exported_program()
from executorch.exir.backend.backend_api import LoweredBackendModule, to_backend
lowered_module = edge_program.to_backend(XnnpackPartitioner())
save_path = save_path = "/home/adonnini1/Development/ContextQSourceCode/NeuralNetworks/trajectory-prediction-transformers-master/models/tpt_delegate.pte"
with open(save_path, "wb") as f:
f.write(lowered_module.to_executorch().buffer)
from executorch.
@cccclai After looking at the code I use to produce the lowered module (is this what you were looking for?), what do you think? Is there anything I can do next to help resolve this issue? Please let me know if you need any additional information. Thanks
from executorch.
@cccclai Sorry to bug you again about this. Did you take a look at the code I use to produce the lowered model? What should I do next? Until this problem is resolved I am stuck. Please let me know.
Thanks
from executorch.
@cccclai I installed executorch from main branch and produced the lowered model. The size of the file was reduced by about half.
Unfortunately, the outcome was the same (see below).
I realize yoyu must be pretty busy and have higher priorities. I hope you can take a look at this issue soon.
Thanks
ERROR LOG
04-07 16:21:42.642: I/ETLOG(25729): Model file /data/user/0/com.android.contextq/files/locationInformation/tpt_delegate.pte is loaded.
04-07 16:21:42.643: I/ETLOG(25729): Setting up planned buffer 0, size 29448544.
04-07 16:21:42.661: I/ETLOG(25729): Constant buffer 1 out of program buffer range 0
04-07 16:21:42.661: I/ETLOG(25729): getTensorDataPtr() failed: 0x12
04-07 16:21:42.661: I/ETLOG(25729): Failed parsing tensor at index 0: 0x12
04-07 16:21:42.661: I/ETLOG(25729): In function CheckOk(), assert failed: hasValue_
from executorch.
Related Issues (20)
- Error building coreml_executor_runner HOT 2
- Error in Pip Install Editable Mode
- [Flaky] test-demo-ios / macos-job
- Failing install_requirements.sh with line errors
- Consolidate MacOS trunk jobs into fewer and bigger jobs HOT 1
- [Usability] My clone of third-party/pytorch is taking a really long time? HOT 4
- export llama failing with errors for runtime errors HOT 10
- [Usability] executorch_portable_utils.py is not being installed by setup script
- No such file or directory: executorch/exir/_serialize/program.fbs and scalar_type.fbs HOT 12
- [Usability] Does README need to be updated to switch to alpha? HOT 1
- [Nit] Should we remove TODO from directory structure?
- [Nit] Should we include quick install steps directly in the README? HOT 1
- QNN backend static input length and kv-caching question HOT 4
- Buck2 version not satisfied HOT 1
- No such file or directory: #include "HTP/QnnHtpContext.h" HOT 2
- Model Deployment using executorch on Android devices with QNN
- Issues with QNN tutorial HOT 1
- Change behavior of updating input signature (parameter) when lowering to the backend HOT 4
- QNN backend llama support HOT 1
- [QNN] Support non-Android aarch64 Linux targets for QNN backend? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from executorch.