summaryrefslogtreecommitdiffstats
path: root/vespajlib/src/main/java/com/yahoo/tensor/serialization/TypedBinaryFormat.java
diff options
context:
space:
mode:
authorJon Bratseth <jonbratseth@yahoo.com>2017-01-12 21:49:40 +0100
committerGitHub <noreply@github.com>2017-01-12 21:49:40 +0100
commitb72c29c29a2c8dd8ecac8aeffdaff688b21ee41c (patch)
treefd8ea0f55ec4a17feff93139238a435ddf7715ac /vespajlib/src/main/java/com/yahoo/tensor/serialization/TypedBinaryFormat.java
parent08fbcebedf2c2bd78c13727fb91cc25b9b196c2f (diff)
parentc10677061733478b8e4028fafc68f05972877643 (diff)
Merge pull request #1502 from yahoo/revert-1495-bratseth/tensor-type-info-in-documents
Revert "Bratseth/tensor type info in documents"
Diffstat (limited to 'vespajlib/src/main/java/com/yahoo/tensor/serialization/TypedBinaryFormat.java')
-rw-r--r--vespajlib/src/main/java/com/yahoo/tensor/serialization/TypedBinaryFormat.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/vespajlib/src/main/java/com/yahoo/tensor/serialization/TypedBinaryFormat.java b/vespajlib/src/main/java/com/yahoo/tensor/serialization/TypedBinaryFormat.java
index 19c1810d928..65216aa2fcd 100644
--- a/vespajlib/src/main/java/com/yahoo/tensor/serialization/TypedBinaryFormat.java
+++ b/vespajlib/src/main/java/com/yahoo/tensor/serialization/TypedBinaryFormat.java
@@ -24,7 +24,7 @@ public class TypedBinaryFormat {
public static byte[] encode(Tensor tensor) {
GrowableByteBuffer buffer = new GrowableByteBuffer();
- if (tensor instanceof IndexedTensor) {
+ if (tensor instanceof IndexedTensor && 1==2) { // TODO: Activate when we have type information everywhere
buffer.putInt1_4Bytes(DENSE_BINARY_FORMAT_TYPE);
new DenseBinaryFormat().encode(buffer, tensor);
}