import torch

device = torch.device('cpu')
model = torch.load('models/mb2-ssd-lite-mp-0_686.pth', map_location=device)
#model.to(device)
print("Model's state_dict:")
for param_tensor in model.state_dict():
    print(param_tensor, "\t", model.state_dict()[param_tensor].size())

This is my code and I am thrown a attribute error as show:
for param_tensor in model.state_dict():

AttributeError: ‘collections.OrderedDict’ object has no attribute ‘state_dict’