【问题标题】:How to check if Keras backend is tensorflow or theano如何检查 Keras 后端是 tensorflow 还是 theano
【发布时间】:2021-06-15 12:33:57
【问题描述】:

我想检查后端 keras 正在使用的代码。是tensorflow还是theano?我怎样才能得到这个?

代码here 使用K._BACKEND,但是我收到一条错误消息,提示找不到该属性。我的 Keras 版本是 2.2.5

【问题讨论】:

    标签: python tensorflow keras theano


    【解决方案1】:

    来自here,以下作品

    from keras import backend as K
    
    print(K.backend())
    

    【讨论】:

      猜你喜欢
      • 2017-12-17
      • 2018-04-26
      • 1970-01-01
      • 2017-06-29
      • 2017-06-27
      • 1970-01-01
      • 2019-01-19
      • 1970-01-01
      • 2011-05-10
      相关资源
      最近更新 更多