public static INDArray tanh(INDArray ndArray, boolean dup) {
        return exec(dup ? new Tanh(ndArray, ndArray.dup()) : new Tanh(ndArray));
    }
public static INDArray tanh ( INDArray ndArray , boolean dup ) { return exec ( dup ? new Tanh ( ndArray , ndArray . dup ( ) ) : new Tanh ( ndArray ) ) ; }
Tanh function

@param ndArray
@param dup
@return