s="nb">enumerate</span><span class="p">(</span><span class="n">direction</span><span class="p">):</span>
                    <span class="k">if</span> <span class="n">rhasattr</span><span class="p">(</span><span class="n">policy</span><span class="p">,</span> <span class="sa">f</span><span class="s2">&quot;</span><span class="si">{</span><span class="n">layer_name</span><span class="si">}</span><span class="s2">.</span><span class="si">{</span><span class="n">direction</span><span class="si">}</span><span c