{"action":"closed","issue":{"url":"https://api.github.com/repos/onnx/onnx-tensorflow/issues/153","repository_url":"https://api.github.com/repos/onnx/onnx-tensorflow","labels_url":"https://api.github.com/repos/onnx/onnx-tensorflow/issues/153/labels{/name}","comments_url":"https://api.github.com/repos/onnx/onnx-tensorflow/issues/153/comments","events_url":"https://api.github.com/repos/onnx/onnx-tensorflow/issues/153/events","html_url":"https://github.com/onnx/onnx-tensorflow/issues/153","id":320773247,"number":153,"title":"ImportError: cannot import name 'tensorflow_graph_to_onnx_model'","user":{"login":"cl5220418","id":14588804,"avatar_url":"https://avatars3.githubusercontent.com/u/14588804?v=4","gravatar_id":"","url":"https://api.github.com/users/cl5220418","html_url":"https://github.com/cl5220418","followers_url":"https://api.github.com/users/cl5220418/followers","following_url":"https://api.github.com/users/cl5220418/following{/other_user}","gists_url":"https://api.github.com/users/cl5220418/gists{/gist_id}","starred_url":"https://api.github.com/users/cl5220418/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cl5220418/subscriptions","organizations_url":"https://api.github.com/users/cl5220418/orgs","repos_url":"https://api.github.com/users/cl5220418/repos","events_url":"https://api.github.com/users/cl5220418/events{/privacy}","received_events_url":"https://api.github.com/users/cl5220418/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-05-07T11:43:59Z","updated_at":"2018-05-10T02:08:08Z","closed_at":"2018-05-10T02:08:08Z","author_association":"NONE","body":"When I run the following ‘OnnxTensorflowExport’ code, I get ImportError: cannot import name 'tensorflow_graph_to_onnx_model'. What should I do? Thanks!\r\n\r\n`import tensorflow as tf\r\nimport onnx_tf.frontend\r\nfrom onnx_tf.frontend import tensorflow_graph_to_onnx_model\r\n\r\nwith tf.gfile.GFile(\"frozen_graph.pb\", \"rb\") as f:\r\n    graph_def = tf.GraphDef()\r\n    graph_def.ParseFromString(f.read())\r\n    onnx_model = tensorflow_graph_to_onnx_model(graph_def,\r\n                                     \"fc2/add\",\r\n                                     opset=6)\r\n    file = open(\"mnist.onnx\", \"wb\")\r\n    file.write(onnx_model.SerializeToString())\r\n    file.close()\r\n`"}}
{"actor":{"display_login":"cl5220418"}}