@mhubii,
Thanks for the response. Is it really required to have a struct/class and TORCH_MODULE(Net);?? Is it not possible to store the torch::nn::Sequential directly as below?
 torch::nn::Sequential seqConvLayer(torch::nn::Conv2d(torch::nn::Conv2dOptions(3, 16, 3).padding(1)),
     ReLu(),
     MaxPool2d(),
     torch::nn::Conv2d(torch::nn::Conv2dOptions(16, 32, 3).padding(1)),
     ReLu(),
     MaxPool2d(),
     torch::nn::Conv2d(torch::nn::Conv2dOptions(32, 64, 3).padding(1)),
     ReLu(),
     MaxPool2d(),
     Flatten(),
     DropOut(0.25, true),
     torch::nn::Linear(64 * 4 * 4, 500),
     ReLu(),
     DropOut(0.25, true),
     torch::nn::Linear(500, 10),
     LogSoftMax()
     );
 TORCH_MODULE(seqConvLayer);


And it is throwing error during compilation on TORCH_MODULE(seqConvLayer);
Is there an option to save the model from sequence and load it?