Skip to content

Commit

Permalink
Update import for torchvision.transformers (deepspeedai#6958)
Browse files Browse the repository at this point in the history
Fixes import - found via
[torchfix](https://github.com/pytorch-labs/torchfix).

Signed-off-by: yisheng <yi.sheng@intel.com>
  • Loading branch information
loadams authored and ys950902 committed Mar 6, 2025
1 parent e5d40a7 commit ec940ef
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 ec940ef

Please sign in to comment.