Debugging inside an LSTM Layer

Hi, I’m trying to debug the results I’m getting inside a LSTM layer, I mean inside the cells and the intermediate h_i and c_i, someone knows if it’s even possible? or has any trick to check it?
Just to give context I’m trying to write a network using lstm cells in “low level” , so I need reference to debug.