en the mode matches.</p></li>
<li><p><strong>target_mode</strong> – Mode (one of ‘train’, ‘eval’, ‘infer’).</p></li>
<li><p><strong>else</strong> – Transform to apply when the mode doesn’t match (defaults to identity transform).</p></li>
</ul>
</dd>
</dl>
</dd></dl>

<dl class="py class">
<dt class="sig sig-object py" id="padl.IfInfer">
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">padl.</span></spa