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 setsstatic_shapes = Trueis compiled for the sizes it meets instead of symbolic ones, and one whose class setscompile_options(inductor options, e.g.{"triton.coalesce_tiling_analysis": False}) is compiled with those this PyTorch knows.- Parameters:
block (Module)