[docs]defalexnet(pretrained:bool=False,progress:bool=True,**kwargs:Any)->AlexNet:r"""AlexNet model architecture from the `"One weird trick..." <https://arxiv.org/abs/1404.5997>`_ paper. Args: pretrained (bool): If True, returns a model pre-trained on ImageNet progress (bool): If True, displays a progress bar of the download to stderr """model=AlexNet(**kwargs)ifpretrained:state_dict=load_state_dict_from_url(model_urls['alexnet'],progress=progress)model.load_state_dict(state_dict)returnmodel
Docs
Access comprehensive developer documentation for PyTorch
To analyze traffic and optimize your experience, we serve cookies on this site. By clicking or navigating, you agree to allow our usage of cookies. As the current maintainers of this site, Facebook’s Cookies Policy applies. Learn more, including about available controls: Cookies Policy.