4. Load memory from database - eliyahudev/mannix GitHub Wiki

load data

create a new file


define two instances of Matrix_int8 with the size 3,3 and 2,2 Matrix_int8 fc_weight[1]; creatMatrix_int8(3, 3, &fc_weight[0], (Allocator_int8*) al); Matrix_int8 cnn_weight[1]; creatMatrix_int8(2, 2, &cnn_weight[0], (Allocator_int8*) al);


Add LOAD flag to the configuration file

In man_def.h add the load_mem_flag #define MEM_LOAD_MODE // Model parameters and data to be actively loaded , skip CSV read

add load command

load_model_params_mfdb(al,MODEL_PARAMS_FILE); // load mannix format data base Make sure you add the command after all the calls to creatMatrix function!