title: Attribute Error: 'Embedding' object has no attribute 'embeddings' - TensorFlow & Keras
body: <p>Okay so I have a keras model that I fully ran and then saved the weights with this line:</p>
  <pre><code>model.save_weights(&quot;rho_beta_true_tf&quot;, save_format=&quot;tf&quot;)
  </code></pre>
  <p>Then in another file I build just the model and then I load the weights from the model I ran above using this line:</p>
  <pre><code>model_build.load_weights(&quot;rho_beta_true_tf&quot;)
  </code></pre>
  <p>When I then go to call some of the attributes everything displays correctly except when I try to run this line:</p>
  <pre><code>model_build.stimuli.embeddings 
  </code></pre>
  <p>or</p>
  <pre><code>model_build.stimuli.embeddings.numpy()[0]
  </code></pre>
  <p>I get an attribute error saying:</p>
  <pre><code>AttributeError: 'Embedding' object has no attribute 'embeddings'
  </code></pre>
  <p>This line is supposed to return a tensor and if I call any other attributes so far it works so I am not sure if it just can't find the tensors or if the problem is something else. Could someone please help me figure out how to solve this attribute Error?</p>