diff options
author | Arne H Juul <arnej27959@users.noreply.github.com> | 2021-05-20 17:20:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-20 17:20:27 +0200 |
commit | f0e4a4532e4abc4b9c2324b309da1f00cd2aecab (patch) | |
tree | 10f4e1749c33d999a8da6f5ede7268a19c1edb2c /vespajlib/src | |
parent | 5e75ff956a6a15bfb82a7793d68f681e2d555f8f (diff) | |
parent | 3a26076e263b7d6bfa52da0eb9d136291bf53f41 (diff) |
Merge pull request #17925 from vespa-engine/arnej/allow-hex-format-in-tensors
handle hex strings as tensor cell values in document also
Diffstat (limited to 'vespajlib/src')
-rw-r--r-- | vespajlib/src/main/java/com/yahoo/tensor/serialization/JsonFormat.java | 2 |
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); |