MATLAB Answers

cui
0

In the deep learning toolbox, can the LSTM network only receive fixed-length sequence input after it is packaged by matlab complier?

Asked by cui
on 13 Jun 2019
Latest activity Commented on by cui
on 14 Jun 2019
In matlab I designed a 1024*numFrames variable length sequence feature that is available for verification. However, when I packaged it into a dll with matlab complier/complier SDK, I can only use a fixed length as input in C++. When numFrames takes different values, the program crashes. How can I solve it?(matlab2017b is ok, 2019a crash)
--------------------------------------------------------------------------------
Unhandled C++ exception detected at 周一 6月 10 04:03:46 2019 +0800
--------------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled - No sandbox or build area path
Crash Mode : continue (default)
Default Encoding : GBK
Deployed : true
Graphics Driver : Unknown hardware
Graphics card 1 : NVIDIA ( 0x10de ) NVIDIA GeForce GTX 1050 Ti Version 24.21.14.1131 (2018-9-5)
Java Version : Java 1.8.0_181-b13 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
MATLAB Architecture : win64
MATLAB Entitlement ID : Unknown
MATLAB Root : C:\Program Files\MATLAB\R2019a
MATLAB Version : 9.6.0.1072779 (R2019a)
OpenGL : hardware
Operating System : Microsoft Windows 10 企业版
Process ID : 12140
Processor ID : x86 Family 6 Model 94 Stepping 3, GenuineIntel
Session Key : f618492a-7256-4efa-bc46-5ccb21054216
Window System : Version 10.0 (Build 14393)
Fault Count: 1
Abnormal termination:
Unhandled C++ exception
Register State (from fault):
RAX = 0000000000000000 RBX = 00007ffc6f8e81f8
RCX = 0000002145b57420 RDX = 00007ffce4570d16
RSP = 0000002145b57790 RBP = 0000002145b578d0
RSI = 00000000ffffff29 RDI = 0000002145b57920
R8 = 00007ffc6ebb758d R9 = 00000000000000df
R10 = 000000000000000b R11 = 0000376ea41800d4
R12 = 0000021b0d55ee40 R13 = 0000021b0d55ed80
R14 = 0000021b60133ad0 R15 = 0000021b0d55ed80
RIP = 00007ffce4337788 EFL = 00000206
CS = 0033 FS = 0053 GS = 002b
Stack Trace (from fault):
[ 0] 0x00007ffce4337788 C:\Windows\System32\KERNELBASE.dll+00096136 RaiseException+00000104
[ 1] 0x00007ffcde7343dd C:\Windows\SYSTEM32\VCRUNTIME140.dll+00017373 CxxThrowException+00000173
[ 2] 0x00007ffc6de6133d C:\Program Files (x86)\IntelSWTools\openvino_2019.1.087\opencv\bin\opencv_world410.dll+42799933 cv::error+00000381
[ 3] 0x00007ffc6de613b5 C:\Program Files (x86)\IntelSWTools\openvino_2019.1.087\opencv\bin\opencv_world410.dll+42800053 cv::error+00000117
[ 4] 0x00007ffc6e430a8a C:\Program Files (x86)\IntelSWTools\openvino_2019.1.087\opencv\bin\opencv_world410.dll+48892554 cv::dnn::dnn4_v20190122::readTensorFromONNX+00072266
[ 5] 0x00007ffc6e43011f C:\Program Files (x86)\IntelSWTools\openvino_2019.1.087\opencv\bin\opencv_world410.dll+48890143 cv::dnn::dnn4_v20190122::readTensorFromONNX+00069855
[ 6] 0x00007ffc6e36f763 C:\Program Files (x86)\IntelSWTools\openvino_2019.1.087\opencv\bin\opencv_world410.dll+48101219 cv::dnn::dnn4_v20190122::Layer::initInfEngine+00002275
[ 7] 0x00007ffc6e36e021 C:\Program Files (x86)\IntelSWTools\openvino_2019.1.087\opencv\bin\opencv_world410.dll+48095265 cv::dnn::dnn4_v20190122::imagesFromBlob+00000881
[ 8] 0x00007ffc6e375977 C:\Program Files (x86)\IntelSWTools\openvino_2019.1.087\opencv\bin\opencv_world410.dll+48126327 cv::dnn::dnn4_v20190122::Net::setPreferableTarget+00001399
[ 9] 0x00007ffc6e35fdae C:\Program Files (x86)\IntelSWTools\openvino_2019.1.087\opencv\bin\opencv_world410.dll+48037294 cv::dnn::dnn4_v20190122::Net::forward+00000670
[ 10] 0x00007ff76278d554 D:\VS_2015_work\ActivityRecognition\x64\Release\ActivityRecognition.exe+00054612 ActivityRecognition::Recognition+00001604
[ 11] 0x00007ff7627e9e6d D:\VS_2015_work\ActivityRecognition\x64\Release\ActivityRecognition.exe+00433773 SequenceRecognition::Recognize+00000717
[ 12] 0x00007ff7627ef565 D:\VS_2015_work\ActivityRecognition\x64\Release\ActivityRecognition.exe+00456037 main+00002693
[ 13] 0x00007ff7627fc139 D:\VS_2015_work\ActivityRecognition\x64\Release\ActivityRecognition.exe+00508217 __scrt_common_main_seh+00000285
[ 14] 0x00007ffce6ba8364 C:\Windows\System32\KERNEL32.DLL+00033636 BaseThreadInitThunk+00000020
[ 15] 0x00007ffce74b5e91 C:\Windows\SYSTEM32\ntdll.dll+00417425 RtlUserThreadStart+00000033

  1 Comment

I tried to solved this problem myself because the running error of other programs covered the correct error message, and the terminal displayed the matlab complier exception "error". In addition, matlab complier is much slower in the C++ environment than in the matlab environment.

Sign in to comment.

0 Answers