nikitakit / self-attentive-parser

High-accuracy NLP parser with models for 11 languages.

Home Page:https://parser.kitaev.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AttributeError: module 'tensorflow' has no attribute 'GraphDef'

ZahidFaiz opened this issue · comments

The syntax has changed in V2 of tf.
Here's the correct piece:

tf.compat.v1.GraphDef() # -> instead of tf.GraphDef()
tf.compat.v2.io.gfile.GFile() # -> instead of tf.gfile.GFile()

PR #44 would fix this, it's just waiting on a merge from @nikitakit apparently.

Hi @nikitakit,

Is this issue fixed?

I'm facing the same issue. Is there any chance this will be fixed soon?

I'm facing the same issue. Is there any chance this will be fixed soon?