diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2022-08-31 23:29:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-31 23:29:08 +0200 |
commit | 35e134e209ac8cec8d4643e1eee691a6e3f32bdf (patch) | |
tree | 831932ee55f991cd492cd06fd60757b6b8f987b8 /vespajlib/src/test/java/com | |
parent | 9ac5801031a4306d30104090874f9c88a1fa1f3f (diff) | |
parent | f501bf01e5adacb9e854973b162bb60813c9bbb7 (diff) |
Merge pull request #23880 from vespa-engine/revert-23869-arnej/add-more-hex-parsingv8.46.19
Revert "allow simple hex format for dense tensors of known type"
Diffstat (limited to 'vespajlib/src/test/java/com')
-rw-r--r-- | vespajlib/src/test/java/com/yahoo/tensor/TensorParserTestCase.java | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/vespajlib/src/test/java/com/yahoo/tensor/TensorParserTestCase.java b/vespajlib/src/test/java/com/yahoo/tensor/TensorParserTestCase.java index 387cad49f5d..53df95ec2e8 100644 --- a/vespajlib/src/test/java/com/yahoo/tensor/TensorParserTestCase.java +++ b/vespajlib/src/test/java/com/yahoo/tensor/TensorParserTestCase.java @@ -81,47 +81,6 @@ public class TensorParserTestCase { .cell( 5.0, 2, 0, 0) .cell(-6.0, 2, 1, 0).build(), Tensor.from("tensor( x[3],y[2],z[1]) : [1.0, 2.0, 3.0 , 4.0, 5, -6.0]")); - - var int8TT = TensorType.fromSpec("tensor<int8>(x[2],y[3])"); - - assertEquals("binary tensor A", - Tensor.Builder.of(int8TT) - .cell(1, 0, 0) - .cell(20, 0, 1) - .cell(127, 0, 2) - .cell(-1, 1, 0) - .cell(50, 1, 1) - .cell(-128, 1, 2).build(), - Tensor.from(int8TT, "01147FFF3280")); - - assertEquals("binary tensor B", - Tensor.Builder.of(int8TT) - .cell(26.0, 0, 0) - .cell(0.0, 0, 1) - .cell(31.0, 0, 2) - .cell(-68.0, 1, 0) - .cell(-98.0, 1, 1) - .cell(-34.0, 1, 2).build(), - Tensor.from(int8TT, "1a001fbc9ede")); - - assertEquals("binary tensor C", - Tensor.Builder.of(int8TT) - .cell(16, 0, 0) - .cell(32, 0, 1) - .cell(48, 0, 2) - .cell(-16, 1, 0) - .cell(-32, 1, 1) - .cell(-64, 1, 2).build(), - Tensor.from(int8TT, "102030F0E0C0")); - - var floatTT = TensorType.fromSpec("tensor<float>(x[3])"); - assertEquals("float tensor hexdump", - Tensor.Builder.of(floatTT) - .cell(0, 0) - .cell(1.25, 1) - .cell(-19.125, 2).build(), - Tensor.from(floatTT, "000000003FA00000c1990000")); - } @Test |