Yes, in both cases models are in the eval mode.
Additionally, problem looks even weirder when I export model without training it, then the results in the Python and in the C++ are the same.
So it seems that it has problem with exporting trained weights?
I’ll try to debug it layer by layer then.