美文网首页
ubuntu下切换keras的后端backend

ubuntu下切换keras的后端backend

作者: MarkSJL | 来源:发表于2017-03-05 09:25 被阅读0次

    1、keras后端配置是在文件keras.json 这个文件中进行的,因此找到目录,不存的话会自动创建

    sudo gedit ~/.keras/keras.json

    2、theano作为backend

    {

    "image_dim_ordering":"th",

    "epsilon":1e-07,

    "floatx":"float32",

    "backend":"theano"

    }

    3、TensorFlow 作为backend

    {

    "image_dim_ordering":"tf",

    "epsilon":1e-07,

    "floatx":"float32",

    "backend":"tensorflow"

    }

    ref: Keras 切换后端(Theano和TensorFlow)

    相关文章

      网友评论

          本文标题:ubuntu下切换keras的后端backend

          本文链接:https://www.haomeiwen.com/subject/nissgttx.html