By the way, what I want to do is
・Forward ・・・ To out put binary value of [-1,1]. When the input was x, output should be 1sign(x).
・Backward・・・ To return Costhardtanh(x). x has values same as the input for Forward.
I would really appreciate for your help.
Thanks.