r</span> <span class="n">layer</span> <span class="ow">in</span> <span class="n">keras_model</span><span class="o">.</span><span class="n">layers</span><span class="p">:</span>
        <span class="k">if</span> <span class="n">layer</span><span class="o">.</span><span class="n">name</span> <span class="o">==</span> <span class="s1">'model'</span><span class="p">:</span>
            <span class="n">embedding_network</span> <span class="o">=</span> <span class="n">layer</span>
            <span class="k">brea