xnn.common.models.compiled.run_compiled#

xnn.common.models.compiled.run_compiled(block, *args)[source]#

block._reference(*args) on the compiled path (the reference where dropout acts).

Python values among args (sizes, None) are compiled in as constants. Blocks of one structure share one compiled function (their weights are its inputs). A block whose class sets static_shapes = True is compiled for the sizes it meets instead of symbolic ones, and one whose class sets compile_options (inductor options, e.g. {"triton.coalesce_tiling_analysis": False}) is compiled with those this PyTorch knows.

Parameters:

block (Module)