keras默认的backend是tensorflow,更改成theano方法如下:

vim ~/.keras/keras.json

{

    "image_dim_ordering":"tf",      tf是tensorflow的数据格式,这里也要改成th,即theano的数据格式,其实就是维度顺序,keras中文文档里有

    "epsilon":1e-07,

    "floatx":"float32",

    "backend":"tensorflow"

}
05-23 02:21