aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-11-03 16:57:44 +0100
committerHenning Baldersheim <balder@yahoo-inc.com>2022-11-03 16:57:44 +0100
commit1cb5d829c8ff90fd30bb3903b5f8486a901017e5 (patch)
tree181df4c9bbb641e6bf49cc14da677947d27b1554 /config-model/src/main/java
parent19184af9d65ccafd7b7313e95a1946bece1e88a6 (diff)
Handle small and large Constants in a uniform way.
Diffstat (limited to 'config-model/src/main/java')
-rw-r--r--config-model/src/main/java/com/yahoo/vespa/model/ml/ConvertedModel.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/config-model/src/main/java/com/yahoo/vespa/model/ml/ConvertedModel.java b/config-model/src/main/java/com/yahoo/vespa/model/ml/ConvertedModel.java
index 9d9685ec9a0..2344d3d15e0 100644
--- a/config-model/src/main/java/com/yahoo/vespa/model/ml/ConvertedModel.java
+++ b/config-model/src/main/java/com/yahoo/vespa/model/ml/ConvertedModel.java
@@ -294,8 +294,7 @@ public class ConvertedModel {
}
private static void transformSmallConstant(ModelStore store, RankProfile profile, String constantName,
- String constantValueString) {
- Tensor constantValue = Tensor.from(constantValueString);
+ Tensor constantValue) {
store.writeSmallConstant(constantName, constantValue);
Reference name = FeatureNames.asConstantFeature(constantName);
profile.add(new RankProfile.Constant(name, constantValue));