We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82c1d10 commit 4d512c2Copy full SHA for 4d512c2
site/en/tutorials/text/warmstart_embedding_matrix.ipynb
@@ -525,7 +525,7 @@
525
"outputs": [],
526
"source": [
527
"embedding_weights_base = (\n",
528
- " model.get_layer(\"text_input\").get_layer(\"embedding\").get_weights()[0]\n",
+ " model.get_layer(\"text_input\").get_layer(\"embedding\").embeddings\n",
529
")\n",
530
"vocab_base = vectorize_layer.get_vocabulary()"
531
]
@@ -681,7 +681,7 @@
681
"\n",
682
"# Verify the shape of updated weights\n",
683
"# The new weights shape should reflect the new vocabulary size\n",
684
- "text_input_new.get_layer(\"embedding\").get_weights()[0].shape"
+ "text_input_new.get_layer(\"embedding\").embeddings.shape"
685
686
},
687
{
0 commit comments