//create you net structure
auto net = std::make_shared<Net0>();
//load saved model
torch::jit::script::Module module = torch::jit::load("./torchscript-model.pt");

//You need to transfer the weights from the saved module to the net you are using
for (const auto& pair :module.named_parameters()) {
		if(net->named_parameters().find(pair.name) != nullptr){
			net->named_parameters().find(pair.name)->data() = pair.value;
		}
	}
	net->eval();
//with out the above for loop the weight of net are not your save weights but the random
//weights pytorch initlizes with you first construct your net