your optimizer already flipping the sign of the gradient— where what line ?
tanh formula wrong ? I dont see that …
well can you just refix the code and show me what you’ve got, because I really need that code, and also that why I hate using frameworks because they solve things for you without  understanding a nible of what they do, and also they’re heavier. thanks you so much anyway, I’ve been struggling for about month right know.