Class JsonFormat

    • Constructor Summary

      Constructors 
      Constructor Description
      JsonFormat()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Tensor decode​(TensorType type, byte[] jsonTensorValue)
      Deserializes the given tensor from JSON format
      static byte[] encode​(Tensor tensor)
      Serializes the given tensor value into JSON format
      static byte[] encodeWithType​(Tensor tensor)
      Serializes the given tensor type and value into JSON format
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JsonFormat

        public JsonFormat()
    • Method Detail

      • encode

        public static byte[] encode​(Tensor tensor)
        Serializes the given tensor value into JSON format
      • encodeWithType

        public static byte[] encodeWithType​(Tensor tensor)
        Serializes the given tensor type and value into JSON format
      • decode

        public static Tensor decode​(TensorType type,
                                    byte[] jsonTensorValue)
        Deserializes the given tensor from JSON format