|
C Configuration Space and Tuning Library (CCS)
|
A structure that define the callbacks the user must provide to create a user defined tuner. More...
#include <tuner.h>
Data Fields | |
| ccs_result_t(* | del )(ccs_tuner_t tuner) |
| The deletion callback that will be called once the reference count of the tuner reaches 0. | |
| ccs_result_t(* | ask )(ccs_tuner_t tuner, ccs_features_t features, size_t num_configurations, ccs_search_configuration_t *configurations, size_t *num_configurations_ret) |
| The tuner ask interface see ccs_tuner_ask. | |
| ccs_result_t(* | tell )(ccs_tuner_t tuner, size_t num_evaluations, ccs_evaluation_t *evaluations) |
| The tuner tell interface see ccs_tuner_tell. | |
| ccs_result_t(* | get_optima )(ccs_tuner_t tuner, ccs_features_t features, size_t num_evaluations, ccs_evaluation_t *evaluations, size_t *num_evaluations_ret) |
| The tuner get_optima interface see ccs_tuner_get_optima. | |
| ccs_result_t(* | get_history )(ccs_tuner_t tuner, ccs_features_t features, size_t num_evaluations, ccs_evaluation_t *evaluations, size_t *num_evaluations_ret) |
| The tuner get_history interface see ccs_tuner_get_history. | |
| ccs_result_t(* | suggest )(ccs_tuner_t tuner, ccs_features_t features, ccs_search_configuration_t *configuration) |
| The tuner suggest interface see ccs_tuner_suggest, can be NULL. | |
| ccs_result_t(* | serialize_user_state )(ccs_tuner_t tuner, size_t state_size, void *state, size_t *state_size_ret) |
| The tuner serialization interface, can be NULL, in which case common tuner data, history and optima will be serialized. | |
| ccs_result_t(* | deserialize_state )(ccs_objective_space_t objective_space, size_t history_size, ccs_evaluation_t *history, size_t num_optima, ccs_evaluation_t *optima, size_t state_size, const void *state, void **tuner_data_ret) |
| The tuner deserialization interface, can be NULL, in which case, the history will be set through the tell interface. | |
A structure that define the callbacks the user must provide to create a user defined tuner.
| ccs_result_t(* ccs_user_defined_tuner_vector_s::deserialize_state) (ccs_objective_space_t objective_space, size_t history_size, ccs_evaluation_t *history, size_t num_optima, ccs_evaluation_t *optima, size_t state_size, const void *state, void **tuner_data_ret) |
The tuner deserialization interface, can be NULL, in which case, the history will be set through the tell interface.
Must return the tuner data to use at initialization