There is an example for training a torch::nn::Module https://pytorch.org/cppdocs/frontend.html#end-to-end-example 10 but when I try to use a torch::jit::script::Module, I cannot call .parameters() like in the example.
Is there a way to train a  torch::jit::script::Module in C++?