报错
ImportError: SystemError: <built-in method __contains__ of dict object at 0x00000191EAE67090> returned a result with an error set
from keras.models import load_model
Using TensorFlow backend.
2022-03-31 01:08:26.412697: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found
2022-03-31 01:08:26.413621: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
ImportError: DLL load failed: 找不到指定的模块。
没有配置正确KERAS
首先,请问你有显卡吗,什么型号?如果有,你的cuda核心有多少个?如果你连这些问题都回答不了,那么你可以放弃使用TensorFlow GPU去计算,即使能运行,你也不知道自己在干嘛,转而考虑CPU就可以了。
如果你可以回答上面的问题,那么请考虑更换TensorFlow 版本和CUDA toolkit的版本问题,TF 2.1 需要CUDA 10.1, 不是10.2 或者10.0(不兼容),详细可咨询你的显卡供应商。