- Is it possible to set attributes to model parameters by looping over
model.named_children() and accessing them later by looping over ‘self.model.named_parameters()’? One example is below:
for key, val in self.model.named_children():
val.classname = val.__class__.__name__
for key, val in self.model.named_parameters():
- More generally, what is a good read to understand how
state_dict() differ from each other and what are their application?