I’m not sure I understand the issue. Why do you need to mark it as const? Your microcontroller application requires the weights to be const? Can you not just create a constant reference to use in APIs other than the model entry function?