Skip to content

Commit

Permalink
Update import for torchvision.transformers (#6958)
Browse files Browse the repository at this point in the history
Fixes import - found via
[torchfix](https://github.com/pytorch-labs/torchfix).
  • Loading branch information
loadams authored Jan 17, 2025
1 parent 018ece5 commit f97f088
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/alexnet_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def cast_to_half(x):

def cifar_trainset(fp16=False):
torchvision = pytest.importorskip("torchvision", minversion="0.5.0")
import torchvision.transforms as transforms
from torchvision import transforms

transform_list = [
transforms.ToTensor(),
Expand Down

0 comments on commit f97f088

Please sign in to comment.