diff options
author | Jon Bratseth <bratseth@yahoo-inc.com> | 2016-12-05 09:16:33 -0800 |
---|---|---|
committer | Jon Bratseth <bratseth@yahoo-inc.com> | 2016-12-05 09:16:33 -0800 |
commit | 8fc656b3491b084fe6459ab3a2decb91715511e6 (patch) | |
tree | 859a5ea7e5bd7272e604b7b8bf5b55152bdd29b7 /vespajlib/src/test/java/com/yahoo/tensor/TensorFunctionBenchmark.java | |
parent | 5b454c9ce2674a5e8e39c98b57de446961a924df (diff) |
Move Builder below MapTensor
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() |