You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Py OV] Fix export_model() fails Unable to cast Python instance of type <class 'int'> to C++ type 'int' (#30468)
### Details:
- `OutPyStream.seekoff` calls `io.BytesIO.seek()` method which return
type is python's `int`.
In Python3 `int` type can expand to the limit of the available memory.
Error occurs when casting numbers bigger than 2^32-1 to C++'s int which
is 16-bit or 32-bit.
Solution: cast seek() return value to `long long int` which is at least
64-bit.
### Tickets:
- [CVS-165443](https://jira.devtools.intel.com/browse/CVS-165443)
---------
Signed-off-by: Alicja Miloszewska <alicja.miloszewska@intel.com>
0 commit comments