xnn.common.models.fast.capture_preparation#
- xnn.common.models.fast.capture_preparation()[source]#
A context in which an evaluation is warmed up for or recorded into a CUDA graph.
Inside it models leave out steps that read a result on the host to choose their work (a recording cannot read one, and its warmups must run the code it records), such as MACE’s pairing of the two directions of its bonds.
- Return type:
Iterator[None]