jasonrig / address-net

A package to structure Australian addresses
MIT License
194 stars 86 forks source link

model.py error #23

Open simhl1123 opened 1 year ago

simhl1123 commented 1 year ago

module 'tensorflow' has no attribute 'get_variable'

MarkSpencer67 commented 1 year ago

I getting the same error, code is below

 21     embeddings = tf.get_variable("embeddings", dtype=tf.float32, initializer=tf.random_normal(shape=(len(vocab), 8)))
 22     encoded_strings = tf.nn.embedding_lookup(embeddings, encoded_text)
 23 

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

grgzzvkrua41 commented 11 months ago

I am getting same error AttributeError: module 'tensorflow' has no attribute 'get_variable'