模块'tensorflow'没有属性'get_default_graph'tf 2.2.0

问题描述

运行github代码时遇到问题。

模块'tensorflow'没有属性'get_default_graph'

使用pip安装:tensorflow版本= 2.3.0

keras = 2.2.4

我使用这些方法

有人知道我运行此代码的另一种方法吗?我只需要对keras.utils.get_file运行keras

{
  "errors": [
    {
      "message": "Cannot return null for non-nullable field AuthPayload.users.","locations": [
        {
          "line": 4,"column": 5
        }
      ],"path": [
        "login","users"
      ],"extensions": {
        "code": "INTERNAL_SERVER_ERROR","exception": {
          "stacktrace": [
            "Error: Cannot return null for non-nullable field AuthPayload.users.","    at completeValue (C:\\Users\\donda\\Desktop\\New folder (3)\\prisma-examples\\javascript\\graphql-auth - copy\\node_modules\\graphql\\execution\\execute.js:595:13)","    at completeValueCatchingError (C:\\Users\\donda\\Desktop\\New folder (3)\\prisma-examples\\javascript\\graphql-auth - copy\\node_modules\\graphql\\execution\\execute.js:530:19)","    at resolveField (C:\\Users\\donda\\Desktop\\New folder (3)\\prisma-examples\\javascript\\graphql-auth - copy\\node_modules\\graphql\\execution\\execute.js:461:10)","    at executeFields (C:\\Users\\donda\\Desktop\\New folder (3)\\prisma-examples\\javascript\\graphql-auth - copy\\node_modules\\graphql\\execution\\execute.js:297:18)","    at collectAndExecuteSubfields (C:\\Users\\donda\\Desktop\\New folder (3)\\prisma-examples\\javascript\\graphql-auth - copy\\node_modules\\graphql\\execution\\execute.js:748:10)","    at completeObjectValue (C:\\Users\\donda\\Desktop\\New folder (3)\\prisma-examples\\javascript\\graphql-auth - copy\\node_modules\\graphql\\execution\\execute.js:738:10)","    at completeValue (C:\\Users\\donda\\Desktop\\New folder (3)\\prisma-examples\\javascript\\graphql-auth - copy\\node_modules\\graphql\\execution\\execute.js:626:12)","    at completeValue (C:\\Users\\donda\\Desktop\\New folder (3)\\prisma-examples\\javascript\\graphql-auth - copy\\node_modules\\graphql\\execution\\execute.js:592:21)","    at C:\\Users\\donda\\Desktop\\New folder (3)\\prisma-examples\\javascript\\graphql-auth - copy\\node_modules\\graphql\\execution\\execute.js:527:16"
          ]
        }
      }
    }
  ],"data": null
}

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)