Skip to main content

PredsyncModelReset

Type Alias PredsyncModelReset 

Source
pub type PredsyncModelReset = unsafe extern "C" fn(ctx: *mut c_void);
Expand description

C callback signature for a runtime custom predictor model.

reset, update, predict and state_hash must all be non-null. ctx is passed through unchanged on every call. The callback is outside predsync’s cross-platform bit-exactness guarantees.