The tutorial way 223 of moving models to C++ for inference is through tracing/scripting the model. The main alternative would be to re-create the model in C++ using the nn API there and then loading the weights (e.g. torchvision does that for the conv net models for testing).
Best regards
Thomas