Skip to content

Commit

Permalink
Update import for torchvision.transformers
Browse files Browse the repository at this point in the history
  • Loading branch information
loadams committed Jan 16, 2025
1 parent 018ece5 commit dd047fa
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 transformers

transform_list = [
transforms.ToTensor(),
Expand Down

0 comments on commit dd047fa

Please sign in to comment.