【已解决】module 'torchaudio.transforms' has no attribute 'ToTensor'

1.报错,这两种情况 module 'torchaudio.transforms' has no attribute 'ToTensor' module 'torchvision' has no attribute 'transforms' 2.修改方式: 将导库的方式从 【import torch
posted @ 2023-08-10 14:24  许个未来—  阅读(290)  评论(0编辑  收藏  举报