protected static DataBuffer createValueBuffer ( float [ ] values ) { checkNotNull ( values ) ; if ( values . length == 0 ) { return Nd4j . createBuffer ( 1 ) ; } return Nd4j . createBuffer ( values ) ; }
Create a DataBuffer for values of given array of values .