I have pretrained model in c++ that I trained in python. I now need to extract the weights to do my own arithmetic with it. I see that several methods exist for python. I tried using one called named_parameters() but it did not work. Does anyone have any other methods that i can try to use. Idealy I would want it to be return as a tensor.
Module::parameters() is defined here and will return a std::vector<Tensor> while Module::named_parameters() is defined here and will return a std::map<std::string, at::Tensor>.
Sorry I just saw this and been deleting code all day so I do not remember. My goal right now is to just get the weights and store them so I could use my own multiplication method. majority of the issue say ‘no member’ or that the function is not a member.