Solved by albanD in post #2 
              
              
                Hi, 
That looks good. 
Aren’t you missing the last multiply though? If you you might want to modify your forward to keep a reference to the input and return input * x.