Solved by David_Reiss in post #2 
              
              
                Can you try this with the latest nightly (1.4.0-SNAPSHOT)?  Instructions are in the first half of this post: [Android] Something's went wrong with pytorch_android-1.4.0-SNAPSHOT 
This part of the code was refactored and the issue should either be fixed or at least have a clearer error message.