(pretrained=True, **kwargs)
return model
Constructs a ResNet-34 model.
    Args:
        pretrained (bool): If True, returns a model pre-trained on ImageNet
Constructs a ResNet-34 model.
    Args:
        pretrained (bool): If True, returns a model pre-trained on ImageNet
Constructs a ResNet - 34 model . Args : pretrained ( bool ) : If True returns a model pre - trained on ImageNet
def resnet34(pretrained=True, **kwargs):
    """Constructs a ResNet-34 model.
    Args:
        pretrained (bool): If True, returns a model pre-trained on ImageNet
    """
    model = ResNet(BasicBlock, [3, 4, 6, 3], **kwargs)
    if pretrained:
        assert kwargs['in_channels'] == 3, 'in_channels must be 3 whem pretrained is True'
        model.load_state_dict(model_zoo.load_url(model_urls['resnet34']), strict=False)
    return model
def resnet34 ( pretrained = True , * * kwargs ) : model = ResNet ( BasicBlock , [ 3 , 4 , 6 , 3 ] , * * kwargs ) if pretrained : assert kwargs [ 'in_channels' ] == 3 , 'in_channels must be 3 whem pretrained is True' model . load_state_dict ( model_zoo . load_url ( model_urls [ 'resnet34' ] ) , strict = False ) return model