【问题总结】PyCharm运行报错:RuntimeError: implement_array_function method already has a docstring...

【代码】

import torch
import torchvision
import torchvision.transforms as transforms

transform = transforms.Compose(
    [transforms.ToTensor(),transforms.Normalize((0.5,0.5,0.5),(0.5,0.5,0.5))])

trainset = torchvision.datasets.CIFAR10(root='./data',train=True,download=True,transform=transform)
trainloader = torch.utils.data.DataLoader(trainset,batch_size=4,shuffle=True,num_workers=2)
testset = torchvision.datasets.CIFAR10('./data',train=False,download=True,transform=transform)
testloader = torch.utils.data.DataLoader(testset,batch_size=4,shuffle=False,num_workers=2)
classes = ('plane','car','bird','cat','deer','dog','flog','horse','ship','truck')

【报错】

【问题总结】PyCharm运行报错:RuntimeError: implement_array_function method already has a docstring..._第1张图片

 

 【解决】

 

转载于:https://www.cnblogs.com/ITCSJ/p/11451988.html

你可能感兴趣的:(【问题总结】PyCharm运行报错:RuntimeError: implement_array_function method already has a docstring...)