r"""ResNet-18 model from `"Deep Residual Learning for Image Recognition" `_. 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
(pretrained: bool = False, progress: bool = True, **kwargs: Any)
| 266 | |
| 267 | |
| 268 | def resnet18(pretrained: bool = False, progress: bool = True, **kwargs: Any) -> ResNet: |
| 269 | r"""ResNet-18 model from |
| 270 | `"Deep Residual Learning for Image Recognition" <https://arxiv.org/pdf/1512.03385.pdf>`_. |
| 271 | |
| 272 | Args: |
| 273 | pretrained (bool): If True, returns a model pre-trained on ImageNet |
| 274 | progress (bool): If True, displays a progress bar of the download to stderr |
| 275 | """ |
| 276 | return _resnet('resnet18', BasicBlock, [2, 2, 2, 2], pretrained, progress, |
| 277 | **kwargs) |
| 278 | |
| 279 | |
| 280 | def resnet34(pretrained: bool = False, progress: bool = True, **kwargs: Any) -> ResNet: |