summaryrefslogtreecommitdiffstats
path: root/vespajlib/src/test/java/com/yahoo/tensor/TensorFunctionBenchmark.java
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@yahoo-inc.com>2016-12-05 09:16:33 -0800
committerJon Bratseth <bratseth@yahoo-inc.com>2016-12-05 09:16:33 -0800
commit8fc656b3491b084fe6459ab3a2decb91715511e6 (patch)
tree859a5ea7e5bd7272e604b7b8bf5b55152bdd29b7 /vespajlib/src/test/java/com/yahoo/tensor/TensorFunctionBenchmark.java
parent5b454c9ce2674a5e8e39c98b57de446961a924df (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.java4
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()