- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi! Thank you for the amazing work of doing OpenVino toolkit, it's great!
I'm having a trouble though: when I try to load a network from a file within two or more threads simultaneously it crashes (in different places).
Most of the crashes happen deeply in CNNNetReader::ReadNetwork or CNNNetwork::reshape. Objects are completely independent, nothing is shared between my threads. Is this an expected behaviour? Thanks!
OpenVino 2019.3.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Garustovich, Alexande,
did you forget to add the - - keep_shape_ops switch to your model optimizer command ?
According to The MO Dev Guide
Implemented experimental feature to generate the IR with "Shape" layers. The feature makes possible to change model input shapes in the Inference Engine (using dedicated reshape API) instead of re-generating models in the Model Optimizer. The feature is enabled by providing command line parameter --keep_shape_ops to the Model Optimizer.
Even if you did forget that, though, I wouldn't think it's contributing to your crashes. But it's worth a try. Can you let me know and report back here ?
Thanks,
shubha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Garustovich, Alexander,
It is known problem that you cannot read and reshape network from different threads in the same time. We are investigating it. I think the fix will be available in the R2 release.
As a workaround you can use mutexes in order to avoid crashes.
--
Best regards,
Ilya
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page