aboutsummaryrefslogtreecommitdiffstats
path: root/vespajlib/src/main/java/com/yahoo/tensor/IndexedTensor.java
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2020-09-03 12:01:39 +0200
committerJon Bratseth <bratseth@gmail.com>2020-09-03 12:01:39 +0200
commit91b2cf49d8e25c378f4aa00833ca8245f9c1ca65 (patch)
treed316b36715016249a4db13f5aebf0805967a2dad /vespajlib/src/main/java/com/yahoo/tensor/IndexedTensor.java
parentbed63d34ef760934ba45bb80d36699345c9416f5 (diff)
Use the tensor type to switch tensor binary format
The binary format of a tensor should depend on the tensor type, not the implementation type as the API permits the user choosing that (and it may not be 1-1 anyway). This makes this change for sparse tensors using the mixed implementation type but not dense tensors using the mixed implementation type as that would be more work given the unfinished state of the mixed implementation.
Diffstat (limited to 'vespajlib/src/main/java/com/yahoo/tensor/IndexedTensor.java')
-rw-r--r--vespajlib/src/main/java/com/yahoo/tensor/IndexedTensor.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/vespajlib/src/main/java/com/yahoo/tensor/IndexedTensor.java b/vespajlib/src/main/java/com/yahoo/tensor/IndexedTensor.java
index ad82dd6c3ac..dc17c657db9 100644
--- a/vespajlib/src/main/java/com/yahoo/tensor/IndexedTensor.java
+++ b/vespajlib/src/main/java/com/yahoo/tensor/IndexedTensor.java
@@ -178,9 +178,7 @@ public abstract class IndexedTensor implements Tensor {
@Override
public abstract IndexedTensor withType(TensorType type);
- public DimensionSizes dimensionSizes() {
- return dimensionSizes;
- }
+ public DimensionSizes dimensionSizes() { return dimensionSizes; }
@Override
public Map<TensorAddress, Double> cells() {