But I am trying to create the list of weights assigned which I couldn’t do it. As you said I used model.layer[index].weight  but I am facing an Attribute Error.
Would you please guide me I am new to Deep learning currently working on a project.