nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/ops/transforms/Transforms.java
public static INDArray identity(INDArray ndArray, boolean dup) {
        return exec(dup ? new OldIdentity(ndArray, ndArray.dup()) : new OldIdentity(ndArray));
    }
public static INDArray identity(INDArray ndArray, boolean dup) {
        return exec(dup ? new OldIdentity(ndArray, ndArray.dup()) : new OldIdentity(ndArray));
    }
public static INDArray identity ( INDArray ndArray , boolean dup ) { return exec ( dup ? new OldIdentity ( ndArray , ndArray . dup ( ) ) : new OldIdentity ( ndArray ) ) ; }
Identity function

@param ndArray
@param dup
@return
Identity function