I realized my input also changes after I use the forward function. Sometimes I get same input, but most of times it is wrong like outputs. Same as before, I get exception when I try to use my input after forward function.
first three elements of input before forward: 0.3747 0.3584 0.0090
first three elements of input after forward: 3.2892e+08 -nan 4.2039e-45