summaryrefslogtreecommitdiffstats
path: root/model-integration/src
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2022-05-13 15:39:11 +0200
committerJon Bratseth <bratseth@gmail.com>2022-05-13 15:39:11 +0200
commit764bb6c8be54fb94e0652d919286d8e4121faed4 (patch)
tree8f14d7d5a6e0d2712119a19fdb8f73ed76866a2d /model-integration/src
parent19490cfa6d60e35e83902b3e5d6803f8d0146af5 (diff)
No functional changes
Diffstat (limited to 'model-integration/src')
-rw-r--r--model-integration/src/main/java/ai/vespa/rankingexpression/importer/operations/OnnxConstant.java2
-rw-r--r--model-integration/src/main/java/ai/vespa/rankingexpression/importer/tensorflow/TensorFlowImporter.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/model-integration/src/main/java/ai/vespa/rankingexpression/importer/operations/OnnxConstant.java b/model-integration/src/main/java/ai/vespa/rankingexpression/importer/operations/OnnxConstant.java
index 675e18da637..117d699c3a9 100644
--- a/model-integration/src/main/java/ai/vespa/rankingexpression/importer/operations/OnnxConstant.java
+++ b/model-integration/src/main/java/ai/vespa/rankingexpression/importer/operations/OnnxConstant.java
@@ -84,7 +84,7 @@ public class OnnxConstant extends IntermediateOperation {
}
if (value.isEmpty()) {
throw new IllegalArgumentException("Node '" + name + "' of type " +
- "constant has missing or non-supported 'value' attribute");
+ "constant has missing or non-supported 'value' attribute");
}
return value.get();
}
diff --git a/model-integration/src/main/java/ai/vespa/rankingexpression/importer/tensorflow/TensorFlowImporter.java b/model-integration/src/main/java/ai/vespa/rankingexpression/importer/tensorflow/TensorFlowImporter.java
index cb1dede26d9..5316416c4dc 100644
--- a/model-integration/src/main/java/ai/vespa/rankingexpression/importer/tensorflow/TensorFlowImporter.java
+++ b/model-integration/src/main/java/ai/vespa/rankingexpression/importer/tensorflow/TensorFlowImporter.java
@@ -76,8 +76,8 @@ public class TensorFlowImporter extends ModelImporter {
log.fine("Conversion to ONNX with opset " + opset + " failed. Reason: " + res.getSecond());
outputOfLastConversionAttempt = res.getSecond();
}
- throw new IllegalArgumentException("Unable to convert TensorFlow model in '" + modelDir + "' to ONNX. " +
- "Reason: " + outputOfLastConversionAttempt);
+ throw new IllegalArgumentException("Unable to convert TensorFlow model in '" + modelDir + "' to ONNX: " +
+ outputOfLastConversionAttempt);
} catch (IOException e) {
throw new IllegalArgumentException("Conversion from TensorFlow to ONNX failed for '" + modelDir + "'");
} finally {