I’ve faced similar issues during deploying scripted model on Android.
- The first question is “How to check whole grap or code of scripted model?”.
ScriptedModule.codeprovides only upper level code, but inside stacktrace on mobile I see more information about how the code looks like.
- Second is about isinstance(). My model has plenty of
isinstance(tensor, torch.Tensor)or such which are converted to in
tensor1 = unchecked_cast(Tensor, tensor)script code. Here comes an error.
- Why there’s no error while exporting/scripting of module?