I instantiated a model and transfrom it into ScriptMoudle using this:
alex_model = torchvision.models.AlexNet(num_classes=10)
f = torch.jit.script(alex_model)
f.save("./models/alexnet.pt")

I cannot get the attr like stride of Conv2d when I dump() the model in c++
only a constant name like this:

121922×336 15.3 KB

How can I get the value like stride or padding of Conv2d when loading the model in c++?
THANKS VERY MUCH!