diff options
Diffstat (limited to 'vespajlib/src/test/java/com/yahoo/tensor/TensorFunctionBenchmark.java')
-rw-r--r-- | vespajlib/src/test/java/com/yahoo/tensor/TensorFunctionBenchmark.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vespajlib/src/test/java/com/yahoo/tensor/TensorFunctionBenchmark.java b/vespajlib/src/test/java/com/yahoo/tensor/TensorFunctionBenchmark.java index 33ad01b49c5..7b1c07562c6 100644 --- a/vespajlib/src/test/java/com/yahoo/tensor/TensorFunctionBenchmark.java +++ b/vespajlib/src/test/java/com/yahoo/tensor/TensorFunctionBenchmark.java @@ -46,7 +46,7 @@ public class TensorFunctionBenchmark { List<Tensor> tensors = new ArrayList<>(); TensorType type = new TensorType.Builder().mapped("x").build(); for (int i = 0; i < vectorCount; i++) { - MapTensorBuilder builder = new MapTensorBuilder(type); + MapTensor.Builder builder = new MapTensor.Builder(type); for (int j = 0; j < vectorSize; j++) { builder.cell().label("x", String.valueOf(j)).value(random.nextDouble()); } @@ -58,7 +58,7 @@ public class TensorFunctionBenchmark { private static List<Tensor> generateVectorsInOneTensor(int vectorCount, int vectorSize) { List<Tensor> tensors = new ArrayList<>(); TensorType type = new TensorType.Builder().mapped("i").mapped("x").build(); - MapTensorBuilder builder = new MapTensorBuilder(type); + MapTensor.Builder builder = new MapTensor.Builder(type); for (int i = 0; i < vectorCount; i++) { for (int j = 0; j < vectorSize; j++) { builder.cell() |