I think due to some changes torch::jit::load does not return a shared pointer anymore. Check for example the tests 4. You would need to replace every shared pointer like so
// Replace
std::shared_ptr<torch::jit::script::Module> module = torch::jit::load(module_path);
// by this
torch::jit::script::Module module = torch::jit::load(module_path);

// replace every -> by .
// for example
torch::Tensor prediction = module->forward(inputs).toTensor();
// by 
torch::Tensor prediction = module.forward(inputs).toTensor();

I am not too familiar with the inner workings here so I dont know why this was done. But it will fix your problem. The tutorial 3 linked earlier, is also currently being updated according to this pull request 5.