Expand description
GPU-native weight table builders for exact inference.
Structs§
- GpuWeights
- Device-resident log weights indexed by DIMACS variable.
Functions§
- apply_
query_ vars_ device - Temporarily forces query variables true by replacing their false log weights.
- build_
evidence_ by_ var_ gpu - Builds a device table that maps DIMACS variables to forced evidence values.
- build_
weights_ gpu - Builds validated device log-weight tables from probabilities and evidence.
- map_
nodes_ to_ vars_ gpu - Maps device-resident PIR node identifiers to their DIMACS variables.
- restore_
query_ vars_ device - Restores false log weights saved by
apply_query_vars_device.