CoolFace
Apppublic

gofeco/support

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
0likes
api.set_leaf.txt14 linesDownload Raw Back to src_en
1<h3 id='___set_leaf'>set_leaf</h3>2<pre>Set a hierarchical module to be leaf. Useful to stub hierarchical instances3<b>Usage:</b> set_leaf($module_name, $value);4$module_name: The module to be set leaf or not set to leaf5$value: 1 or larger than 1, set the module as leaf. 0 not set to leaf. 6        If $value is not present, the default value is 1.7 8<b>Examples:</b>9 10set_leaf($module_a); # set $module_a as a leaf11set_leaf($module_a, 1); # same as the above12set_leaf($module_a, 0); # remove the leaf setting13 14</pre>