class TimmModel(torch.nn.Module)| 名称 | 类型 | 默认值 |
|---|---|---|
name | — | — |
return_layers | — | — |
pretrained | — | False |
exportable | — | True |
features_only | — | True |
kwargs | — | — |
forward(self, x: torch.Tensor)| 名称 | 类型 | 默认值 |
|---|---|---|
x | torch.Tensor | — |
Copyright(c) 2023 lyuwenyu. All Rights Reserved. https://towardsdatascience.com/getting-started-with-pytorch-image-models-timm-a-practitioners-guide-4e77b4bf9055#0583
class TimmModel(torch.nn.Module)| 名称 | 类型 | 默认值 |
|---|---|---|
name | — | — |
return_layers | — | — |
pretrained | — | False |
exportable | — | True |
features_only | — | True |
kwargs | — | — |
forward(self, x: torch.Tensor)| 名称 | 类型 | 默认值 |
|---|---|---|
x | torch.Tensor | — |