(pretrained=False, **kwargs)
return model
Constructs a ResNet-152 model.

    Args:
        pretrained (bool): If True, returns a model pre-trained on ImageNet
Constructs a ResNet-152 model.
Constructs a ResNet - 152 model .
def resnet152(pretrained=False, **kwargs):
    """Constructs a ResNet-152 model.

    Args:
        pretrained (bool): If True, returns a model pre-trained on ImageNet
    """
    model = ResNet(Bottleneck, [3, 8, 36, 3], **kwargs)
    if pretrained:
        model.load_state_dict(model_zoo.load_url(model_urls['resnet152']))
    return model
def resnet152 ( pretrained = False , * * kwargs ) : model = ResNet ( Bottleneck , [ 3 , 8 , 36 , 3 ] , * * kwargs ) if pretrained : model . load_state_dict ( model_zoo . load_url ( model_urls [ 'resnet152' ] ) ) return model