Hello there!
I was wondering if it’s possible to set requires_grad = false for a model’s parameters in C++?
For instance, if I understood correctly, in Python this would be done as follows:
for param in model.parameters():
    param.requires_grad = False

What is the equivalent of this in C++?
Thank you very much.