Reproduce: Compile with asan and execute runBatch on network compiled with Infer mode.
We should check how NN was originally compiled and throw an appropriate exception in case of incompatibility.
Upd: Make an assert instead of throwing an exception.
@rdzhabarov We compile the code without support for exceptions. We should crash with an assertion if we run into a bug in the program.
@rdzhabarov I spent some time refactoring runBatch, and it now has a different implementation. I did not run into problems. It been 9mo since this issue has been filed. I'll close it unless there is anything actionable that you suggest we do.