如何将keras后端从theano更改为tensorflow(Windows上的奇怪后端)



所以我在C:\Users\Eric的keras后端如下,它来自print(os.path.expanduser('~'((

{
"epsilon": 1e-07,
"floatx": "float32",
"image_data_format": "channels_last",
"backend": "tensorflow"
}

但是,每当我导入keras时,我都会得到这个:

Using Theano backend.
WARNING (theano.configdefaults): g++ not available, if using conda: `conda install m2w64-toolchain`

如何将其改回"张量流"后端?

在尝试导入theano.sandbox.cuda(只是尝试(后,我得到了这个切换到theano

这是由于 activate.d/的keras_activate.bat文件设置为"theano"。只需清空文件即可。

相关内容

最新更新