private static INDArray exec(TransformOp op) {
        if (op.x().isCleanedUp())
            throw new IllegalStateException("NDArray already freed");
        return Nd4j.getExecutioner().execAndReturn(op);
    }
private static INDArray exec ( TransformOp op ) { if ( op . x ( ) . isCleanedUp ( ) ) throw new IllegalStateException ( "NDArray already freed" ) ; return Nd4j . getExecutioner ( ) . execAndReturn ( op ) ; }
Apply the given elementwise op

@param op the factory to create the op
@return the new ndarray