coder Layers</span> <span class="cm"> */</span> <span class="kr">const</span> <span class="nx">encoderEmbeddingLayer</span> <span class="o">=</span> <span class="nx">tf</span><span class="p">.</span><span class="nx">layers</span><span class="p">.</span><span class="nx">embedding</span><span class="p">({</span>   <span class="nx">inputDim</span><span class="o">:</span> <span class="nx">voc</span><span class="p">.</span><span class="nx">size</span><span class="p">,</span>   <span class="nx">outputDim</span><span class="o">:</span> <span class="nx">latentDim</span><span class="p">,</span> <span class="p">})</span>  <span class="kr">const</span> <span class="nx">encoderRnnLayer</span> <span class="o">=</span> <span class="nx">tf</span><span class="p">.</span><span class="nx">layers</span><span class="p">.</span><span class="nx">gru</span><span class="p">({</span>   <span class="nx">units</span><span class="o">:</span> <span class="nx">latentDim</span><span class="p">,</span>   <span class="nx">returnState</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span> <span class="p">})</span>  <span class="