Compile Pytorch model for iOS

You need to run install_name_tool for your model library like

install_name_tool -id @rpath/model.dylib model.dylib

and then just point the name of the library without additional path in iOS app like

m_mod = tvm::runtime::Module::LoadFromFile("model.dylib");