Class Nd4jBase64


  • public class Nd4jBase64
    extends Object
    NDArray as base 64
    Author:
    Adam Gibson
    • Method Detail

      • base64String

        public static String base64String​(INDArray arr)
                                   throws IOException
        Returns an ndarray as base 64
        Parameters:
        arr - the array to write
        Returns:
        the base 64 representation of the binary ndarray
        Throws:
        IOException
      • fromBase64

        public static INDArray fromBase64​(String base64)
        Create an ndarray from a base 64 representation
        Parameters:
        base64 - the base 64 to convert
        Returns:
        the ndarray from base 64