Precision missing while writing the GRU layer in c++

Can you give me suggestions on my current problem I am facing with bidirectional multilayered GRU?