2017-08-22 70 views
1

所以我的keras後端在C:\ Users \ Eric下面是從print(os.path.expanduser('〜'))如何將keras後端從theano更改爲tensorflow(在Windows上奇怪的後端)

{ 
    "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 theano.sandbox.cuda(只想)

+0

你應該能夠在你上面顯示的文件中設置''後端「:」tensorflow「' – DJK

回答

0

這是由於在activate.d /的keras_activate.bat文件設置爲「theano」。只需清空文件。

+0

該文件位於哪裏?我找不到它... –

+0

你可以在文件系統中搜索它 – user1569341

相關問題