pycharm出现warning:在 'init.py' 中找不到引用 'cudnn'
环境:python3.9,pytorch2.0,cuda12
def setup_seed(seed):
torch.manual_seed(seed)
torch.cuda.manual_seed_all(seed)
np.random.seed(seed)
random.seed(seed)
torch.backends.cudnn.deterministic = True
pycharm标黄提示
虽然不影响运行,但是我的强迫症受不了啊