I think you forgot to call register_module in the constructor
Critic_Net()
{
lin1 = register_module("lin1", torch::nn::Linear(427, 42));
lin2 = register_module("lin2", torch::nn::Linear(42, 286));
lin3 = register_module("lin3", torch::nn::Linear(286, 1));
}