Failed to get convolution algorithm. This is probably because cuDNN failed to initialize
原因:import torch
解决方法:
1.把import torch注释掉
2.import torch 改到tf下面
下面是报错代码:
D:\ProgramData\Miniconda3\python.exe D:/project/face/spoof/headpose_final/test_head_pose.py
Using TensorFlow backend.
D:\ProgramData\Miniconda3\lib\site-packages\tensorflow\python\framework\dtypes.py:526: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint8 = np.dtype([("qint8", np.int8, 1)])
D:\ProgramData\Miniconda3\lib\site-packages\tensorflow\python\framework\dtypes.py:527: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint8 =