I get the following error when trying to initialize a traced model with the iOS framework:
PyTorchDemo[25132:6735005] false CHECK FAILED at /Users/distiller/project/c10/core/Backend.h (tensorTypeIdToBackend at /Users/distiller/project/c10/core/Backend.h:106)
(no backtrace available)
The error appears similar to these Android issues:

  
      github.com/pytorch/android-demo-app
  
  
    
  
	  
  

  
    
      Failed to Load Custom Model in Android
    

    
      
        opened 
        
          
        
        Oct 16, 2019
      
      

        
          closed 
        
          
        
        Oct 24, 2019
      
        

      
        
          
          junjuew
        
      
    
  



  Hello,
I'm trying to deploy a custom model in python to Android using pytorch mobile. I used torch.jit.trace to trace and then...





  
  
    
    
  
  



  
    
    
    Model Loading issue in android Mobile
  
  
    My model contains nn.Functional.interpolate layer and it is converted properly to .pt model using jit. 
But Loading same model in android giving issues. 
This is happening in case of interpolate layer only. 
Edit - Error trace 
java.lang.RuntimeException: Unable to start activity ComponentInfo{org.pytorch.custom_model/org.pytorch.custom_model.MainActivity}: com.facebook.jni.CppException: false CHECK FAILED at …/c10/core/Backend.h (tensorTypeIdToBackend at …/c10/core/Backend.h:106) 
(no backtrace…
  


The second linked issue states that there’s an Android update with a fix --is there a fix for the iOS framework?
The model I’m using was traced with PyTorch 1.3.1, and I’m using LibTorch 1.3.1