ml__submit_inference_observations

Function ml__submit_inference_observations 

Source
pub unsafe extern "C" fn ml__submit_inference_observations(
    context: InferenceHandle,
    out_actions_ptr: *mut f32,
    out_actions_len: u32,
    out_values_ptr: *mut f32,
    out_values_len: u32,
) -> ErrorCode
Expand description

Submits observations previously pushed using push_inference_observation. out_actions should be a slice with length num_actions * observation count. out_values should be a slice with length observation count.

Each consecutive sequence of num_actions values in out_actions corresponds to the actions for an observation. If an observation was terminal or interrupted then all actions and the value for that observation will be zeroed out.