summaryrefslogtreecommitdiffstats
path: root/vespajlib
diff options
context:
space:
mode:
authorArne Juul <arnej@verizonmedia.com>2021-05-20 13:17:30 +0000
committerArne Juul <arnej@verizonmedia.com>2021-05-20 14:22:47 +0000
commit3a26076e263b7d6bfa52da0eb9d136291bf53f41 (patch)
tree53eec9d4927b6da81ed9557fb6f40066ebb607f3 /vespajlib
parent6866db49a2a96a6e1a3daa1070e45fa2ed669d1d (diff)
handle hex strings as tensor cell values in document also
Diffstat (limited to 'vespajlib')
-rw-r--r--vespajlib/src/main/java/com/yahoo/tensor/serialization/JsonFormat.java2
1 files changed, 1 insertions, 1 deletions
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);