@Override
    public void synchronizeHostData(INDArray array) {
        if (array.isEmpty() || array.isS())
            return;

        val buffer = array.data().originalDataBuffer() == null ? array.data() : array.data().originalDataBuffer();
        synchronizeHostData(buffer);
    }
@ Override public void synchronizeHostData ( INDArray array ) { if ( array . isEmpty ( ) || array . isS ( ) ) return ; val buffer = array . data ( ) . originalDataBuffer ( ) == null ? array . data ( ) : array . data ( ) . originalDataBuffer ( ) ; synchronizeHostData ( buffer ) ; }
This method should be called to make sure that data on host side is actualized

@param array