fhelium.experimental.bootstrap._core
Normalized Bootstrap execution and bound prepared-core materials.
PreparedBootstrapCore
class View source
PreparedBootstrapCore(algorithm: _CoreAlgorithm, materials: _CoreMaterials, input_signature: ValueSignature, device: torch.device)Callable owning one core's component bindings, keys and prepared materials.
FullSlotBootstrap.prepare_core constructs this object for a post-entry coordinate. Its signature and device fix value state, shape, dtype and layout without retaining the prototype payload. Storage strides may differ: encoded materials are shared by strided inputs and packed Graph buffers. Component objects and evaluation-key values are selected during preparation and retained in ordinary lookup mappings. Appending or removing keys in the caller's inventory leaves these selections unchanged. Configure components before preparation and prepare again after changing them. Different prepared cores have independent material dictionaries.
A captured Graph retains its callable and therefore these materials. Close every Graph using this object before calling close. Closing releases the material and key references and ends host-call use.
evaluation_keys
property
evaluation_keys: EvaluationKeySetReturn a reference inventory of this core's selected evaluation keys.
cached_diagonal_bytes
property
cached_diagonal_bytes: intReturn logical bytes in the owned encoded diagonal materials.
cached_constant_bytes
property
cached_constant_bytes: intReturn logical bytes in the owned scalar and monomial materials.
close
method
def close() -> None: ...Release bindings after all Graphs using this core have been closed.
PreparedBootstrap
class View source
PreparedBootstrap(core: PreparedBootstrapCore, input_signature: ValueSignature)Complete entry/core/finish refresh with prepared public materials and keys.
The instance is an ordinary callable for Eager or Compile. Its core owns the encoded materials; neither the preparation input nor an output is retained. Close captured Graphs before closing this owner. Existing linked executables retain their own bound Tensor references.
evaluation_keys
property
evaluation_keys: EvaluationKeySetReturn this prepared execution's selected primitive key references.
cached_diagonal_bytes
property
cached_diagonal_bytes: intcached_constant_bytes
property
cached_constant_bytes: intclose
method
def close() -> None: ...Release the prepared owner after its captured Graphs are closed.