From 3a26076e263b7d6bfa52da0eb9d136291bf53f41 Mon Sep 17 00:00:00 2001 From: Arne Juul Date: Thu, 20 May 2021 13:17:30 +0000 Subject: handle hex strings as tensor cell values in document also --- vespajlib/src/main/java/com/yahoo/tensor/serialization/JsonFormat.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vespajlib') diff --git a/vespajlib/src/main/java/com/yahoo/tensor/serialization/JsonFormat.java b/vespajlib/src/main/java/com/yahoo/tensor/serialization/JsonFormat.java index 9eb9cb06666..461e73e3611 100644 --- a/vespajlib/src/main/java/com/yahoo/tensor/serialization/JsonFormat.java +++ b/vespajlib/src/main/java/com/yahoo/tensor/serialization/JsonFormat.java @@ -216,7 +216,7 @@ public class JsonFormat { return result; } - private static double[] decodeHexString(String input, TensorType.Value valueType) { + public static double[] decodeHexString(String input, TensorType.Value valueType) { switch(valueType) { case INT8: return decodeHexStringAsBytes(input); -- cgit v1.2.3