>>1007741
Путём практики же.
import sys
import torch
import torchvision.models as models
print('Downloading', file=sys.stderr)
model = models.mobilenet_v3_small(pretrained=True)
# Set mode to inference (not training)
model.eval()
model.classifier = torch.nn.Identity()
print('Exporting', file=sys.stderr)
dummy_input = torch.randn(1, 3, 224, 224)