public static INDArray fromBase64 ( String base64 ) throws IOException { byte [ ] arr = Base64 . decodeBase64 ( base64 ) ; ByteArrayInputStream bis = new ByteArrayInputStream ( arr ) ; DataInputStream dis = new DataInputStream ( bis ) ; INDArray predict = Nd4j . read ( dis ) ; return predict ; }
Create an ndarray from a base 64 representation