Thanks a lot @QuantScientist. It works. However, l didn’t install  “Build torch-vision from source” l just installed pytorch “Build PyTorch from source” then  import torchvision.transforms as transforms works. It’s strange