[BE][Easy][1/19] enforce style for empty lines in import segments (#129752)

See https://github.com/pytorch/pytorch/pull/129751#issue-2380881501. Most changes are auto-generated by linter.

You can review these PRs via:

```bash
git diff --ignore-all-space --ignore-blank-lines HEAD~1
```

Pull Request resolved: https://github.com/pytorch/pytorch/pull/129752
Approved by: https://github.com/ezyang, https://github.com/malfet
This commit is contained in:
Xuehai Pan
2024-07-15 14:56:25 +08:00
committed by PyTorch MergeBot
parent 5e617d7ef5
commit a3abfa5cb5
31 changed files with 33 additions and 11 deletions

View File

@ -3,6 +3,7 @@ from typing import Dict, List, Optional, Tuple
import torch
from torch import Tensor
OUTPUT_DIR = "src/androidTest/assets/"

View File

@ -2,6 +2,7 @@ from torchvision import models
import torch
print(torch.version.__version__)
resnet18 = models.resnet18(weights=models.ResNet18_Weights.IMAGENET1K_V1)

View File

@ -9,6 +9,7 @@ from torchvision import models
import torch
# Download and trace the model.
model = models.mobilenet_v2(weights=models.MobileNet_V2_Weights.IMAGENET1K_V1)
model.eval()