Hi, if I follow the example to use
for(const auto &module: *layers){
torch::nn::Module m;
m=layers[i];
Then i is not iterated as the code would like to get ith layer from modulelist layers.
How shall I realize that please ? I feel it is not exactly the same as the document (although I agree they are somehow similar)