load_from_checkpoint: TypeErrror: __init__() missing 1 required positional argument
def load_checkpoint(path):
    model = resnet50().load_from_checkpoint(path)
    print(model)
    model.eval()
    logit = model._modules.get('fc')
    return model, logit

When i call this function, i got this error.
TypeError: init() missing 1 required positional argument: 'layers'
My model resnet50 is public code in torchvision.
What is wrong in my code?