- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a model which throws stack overflow exception when I want to load using the loadNetwork method of inference engine.
Here are the errors:
CPU
Unhandled exception at 0x00007FF8D3BE3CAE (inference_engine_legacyd.dll) in MMRGround.exe: 0xC00000FD: Stack overflow (parameters: 0x0000000000000001, 0x0000004099603FE0).
GPU
Unhandled exception at 0x00007FF8EFCF1672 (ucrtbased.dll) in MMRGround.exe: 0xC00000FD: Stack overflow (parameters: 0x0000000000000001, 0x000000EF91803FF8).
All other models working fine but this one cant be loaded (however it calculates for a couple minutes)
I tried with model optimized for different batch size, same result.
Its a huge model over 1300 layer can this cause the problem?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This only occur in DEBUG mode.
If i change to RELEASE the network can be loaded.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Adam,
Stack overflow exception happens when a large array is allocated in the stack.
I would suggest that you try allocating the array in the heap.
Regards,
Munesh
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page