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

时间:2017-08-22 04:04:23

标签: tensorflow keras theano

所以我在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`

如何将其更改回'tensorflow'后端?

我尝试导入theano.sandbox.cuda(只是尝试)

后切换到theano

1 个答案:

答案 0 :(得分:0)

这是由于activate.d /上的keras_activate.bat文件设置为' theano'。只是清空文件。