diff options
| author | Your Name <[email protected]> | 2026-08-03 16:34:19 -0700 |
|---|---|---|
| committer | Your Name <[email protected]> | 2026-08-04 16:13:31 -0700 |
| commit | 9286b2dd9bd198d40017ca18a74f5d0449d4c0c4 (patch) | |
| tree | 7ebe4ba7bd8412fa4bedf5b53b483d6dda0b865e /src/benchmark.h | |
| parent | 1217fb762ea1b5b4818ac2627f65b34b88b34ebd (diff) | |
Hot Swapping models
Diffstat (limited to 'src/benchmark.h')
| -rw-r--r-- | src/benchmark.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/benchmark.h b/src/benchmark.h new file mode 100644 index 0000000..cd79d50 --- /dev/null +++ b/src/benchmark.h @@ -0,0 +1,27 @@ +#ifndef BENCHMARK_H +#define BENCHMARK_H + +#include "crossbar_generator.h" +#include "read_crossbar.h" +#include "spires_interface.h" +#include <stddef.h> + +typedef struct { + const char *model_path; + const char *subcircuit_name; +} MemModel; + +int run_benchmark(const spires_reservoir_config *config, + spires_reservoir *reservoir, + Reservoir_State_Matrix *state_matrix, + const double *target_outputs, const char *model_path, + const char *subcircuit_name); + +int plot_raster(const Reservoir_State_Matrix *matrix, size_t neurons_to_plot, + double spike_threshold); + +int plot_reservoir_predictions(const double *expected, const double *predicted, + size_t num_samples, size_t num_outputs, + size_t output_to_plot); + +#endif |
