kernel-ml icon indicating copy to clipboard operation
kernel-ml copied to clipboard

no member named w in the linear_regression structure

Open wyoung1 opened this issue 1 year ago • 1 comments

Dear İbrahim Ümit Akgün,

I'm sorry to bother you. I am writing to bring to your attention a bug that I encountered while reviewing the code in mq-adios.c in the kernel-ml-linux repository.

Upon inspecting the code at line 495 of mq-adios.c, I noticed the following snippet:

io_sched_linear = build_linear_regression(0.03, 10, 0.99, 2); io_sched_linear->check_correctness = io_scheduler_linear_check_correction; set_random_matrix(io_sched_linear->w, modula); The variable io_sched_linear is of type struct linear_regression, as defined in linear_regression.h. However, it appears that there is no member named w in the linear_regression structure. This inconsistency has resulted in compilation errors.

Here is the relevant definition of the linear_regression structure:

typedef struct linear_regression { int batch_size; sgd_optimizer *sgd; loss *loss; layers *layer_list; bool (*check_correctness)(val result, val prediction);

model_data data; model_multithreading multithreading; model_state state; } linear_regression; Could you please look into this issue and provide a fix? It seems that there may be a discrepancy between the code in mq-adios.c and the definition of the linear_regression structure.

Thank you for your attention. I appreciate your efforts in maintaining the kernel-ml-linux repository.

Best regards,

wyoung1 avatar Apr 16 '24 10:04 wyoung1

I also have such a problem, have you found a solution?

Aurora-b1t avatar Jun 19 '25 17:06 Aurora-b1t