Based on the discussion in #30108 it’s clear that pickle_save
is not supported on mobile, because /csrc/jit/serialization/export.cpp
is not included when building for lite interpreter; producing the following runtime error:
#else
AT_ERROR( "pickle_save not supported on mobile " "(see https://github.com/pytorch/pytorch/pull/30108)");
#endif
For loading there’s an option of using torch::jit::_load_for_mobile
.
However, are there any methods, or alternative approaches, of serialising and saving c10::IValue
objects on the mobile device?