for (int i = 0; i < n; i++) {
                        current[i] = Math.tanh(current[i]);
                    }