Unable to do very much with libTorch in MSVC

I am trying to build a simple network in Visual Studio but hitting run time issues. My VS version is 2019 Comminuty, compiling with v14.2 on Windows 10. I am currently working with a simple VS CMake project.

I downloaded and now building against the 1.10.0 LibTorch package (CPU).

If I try to instantiate an object (either struct or class) that inherits from torch::nn::Module and register modules I get the following error when I try to run my code (it builds ok):

"Exception thrown: read access violation.
this->_Vec._Mypair._Myval2._Myfirst was 0x111011101110111."

This is also the case with sample code from the pytorch example repository.

If I try to initialise objects of type Conv2d without registering them I get a different error (torch tries to capture an issue for MSVC):

/// Calls the forward() method of the contained module.
template <typename… Args>
auto operator()(Args&&… args)
→ torch::detail::return_type_of_forward_t<Contained, Args…> {
// This will not compile if the module does not have a forward() method
// (as expected).
// NOTE: std::forward is qualified to prevent VS2017 emitting
// error C2872: ‘std’: ambiguous symbol
return impl_->forward(::std::forward(args)…);
}

MSVC Error:

“Unhandled exception at 0x00007FF8563D4F69 in Torch.exe: Microsoft C++ exception: c10::Error at memory location 0x000000252078DDA0.”

At this point I’m not sure what to do. Any help would be of great assistance. Thanks.