@xta0 I was able to build torchlib with NO_API value to OFF, I also had to set BUILD_MOBILE_AUTOGRAD to ON to resolve the missing VariableTypes.h issue above.
However, the nn namespace still does not appear to be included