Thanks for the input. This snippet of code you provided got me through my error. Unfortunately I’m running into another error. If you have the the time to briefly look at it, the next error is an Unhandled Exception which occurs in my model here:

x = torch::sigmoid(encoder->forward(x))
Unhandled exception at 0x00007FF8AAE8A799 in NeuralNetwork_cpp.exe: Microsoft C++ exception: c10::Error at memory location 0x0000007A173CB3A0. occurred.

Thanks again