ptrblck:

state_dict = model.state_dict()

print((model.features[4].conv.weight == state_dict['features.4.conv.weight']).all())



print((model.features[4].conv.weight == state_dict[‘features.4.conv.weight’]).all())
TypeError: ‘DataParallel’ object does not support indexing
can you please provide the solution ,since i am very new to python,pytorch