aboutsummaryrefslogtreecommitdiffstats
path: root/model-integration
diff options
context:
space:
mode:
authorLester Solbakken <lesters@oath.com>2020-06-03 16:34:11 +0200
committerLester Solbakken <lesters@oath.com>2020-06-03 16:34:11 +0200
commit94e95e0faea4100bf7e0a6c96d5b9fbbbd503202 (patch)
treeed2f70f9d3896b81c13824c271b385d8d1f711e7 /model-integration
parentb8dbf8cc1705d2e568153175b1d2520b5cb72cbf (diff)
Formatting
Diffstat (limited to 'model-integration')
-rw-r--r--model-integration/src/main/java/ai/vespa/rankingexpression/importer/operations/IntermediateOperation.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/model-integration/src/main/java/ai/vespa/rankingexpression/importer/operations/IntermediateOperation.java b/model-integration/src/main/java/ai/vespa/rankingexpression/importer/operations/IntermediateOperation.java
index 8ab15f4a330..6e637c72d0f 100644
--- a/model-integration/src/main/java/ai/vespa/rankingexpression/importer/operations/IntermediateOperation.java
+++ b/model-integration/src/main/java/ai/vespa/rankingexpression/importer/operations/IntermediateOperation.java
@@ -118,8 +118,8 @@ public abstract class IntermediateOperation {
// Each dimension is distinct and ordered correctly:
for (int j = i + 1; j < type.dimensions().size(); j++) {
renamer.addConstraint(type.dimensions().get(i).name(), type.dimensions().get(j).name(),
- DimensionRenamer.Constraint.notEqual(false),
- this);
+ DimensionRenamer.Constraint.notEqual(false),
+ this);
}
}
}
@@ -188,7 +188,7 @@ public abstract class IntermediateOperation {
boolean verifyInputs(int expected, Function<IntermediateOperation, Optional<?>> func) {
if (inputs.size() != expected) {
throw new IllegalArgumentException("Expected " + expected + " inputs for '" +
- name + "', got " + inputs.size());
+ name + "', got " + inputs.size());
}
return inputs.stream().map(func).allMatch(Optional::isPresent);
}
@@ -321,8 +321,8 @@ public abstract class IntermediateOperation {
*/
TensorType.Value resultValueType() {
return TensorType.Value.largestOf(inputs.stream()
- .map(input -> input.type().get().type().valueType())
- .collect(Collectors.toList()));
+ .map(input -> input.type().get().type().valueType())
+ .collect(Collectors.toList()));
}
public abstract IntermediateOperation withInputs(List<IntermediateOperation> inputs);
@@ -359,14 +359,14 @@ public abstract class IntermediateOperation {
@Override
public String toString() {
return operationName() + "(" +
- inputs().stream().map(input -> asString(input.type())).collect(Collectors.joining(", ")) +
- ")";
+ inputs().stream().map(input -> asString(input.type())).collect(Collectors.joining(", ")) +
+ ")";
}
public String toFullString() {
return "\t" + type + ":\t" + operationName() + "(" +
- inputs().stream().map(input -> input.toFullString()).collect(Collectors.joining(", ")) +
- ")";
+ inputs().stream().map(input -> input.toFullString()).collect(Collectors.joining(", ")) +
+ ")";
}
/**