Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Nemes__Adam
Beginner
247 Views

Stack overflow on LoadNetwork

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?

 

0 Kudos
2 Replies
Nemes__Adam
Beginner
247 Views

This only occur in DEBUG mode.

If i change to RELEASE the network can be loaded.

Munesh_Intel
Moderator
247 Views

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

Reply