diff options
author | Jon Bratseth <bratseth@oath.com> | 2018-09-04 14:39:45 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@oath.com> | 2018-09-04 14:39:45 +0200 |
commit | ddd2b9f76bccd696af9aef93d6b4d0fbb50d0298 (patch) | |
tree | 143333cd92b0a7c18dc802589bf523048f9327bd /model-evaluation/src/main/java/ai/vespa/models/evaluation/Constant.java | |
parent | 28d9bc98b9fdce4ab87ada59660b36369d934694 (diff) |
Revert "Merge pull request #6781 from vespa-engine/revert-6774-bratseth/handle-large-constants"
This reverts commit f4b81d662c31f25b2be8964fd22bacf11b60e362, reversing
changes made to f0405491348b35153b6bc3137ae8af6df7255c05.
Diffstat (limited to 'model-evaluation/src/main/java/ai/vespa/models/evaluation/Constant.java')
-rw-r--r-- | model-evaluation/src/main/java/ai/vespa/models/evaluation/Constant.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/model-evaluation/src/main/java/ai/vespa/models/evaluation/Constant.java b/model-evaluation/src/main/java/ai/vespa/models/evaluation/Constant.java new file mode 100644 index 00000000000..e664693ab38 --- /dev/null +++ b/model-evaluation/src/main/java/ai/vespa/models/evaluation/Constant.java @@ -0,0 +1,27 @@ +// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +package ai.vespa.models.evaluation; + +import com.yahoo.tensor.Tensor; + +/** + * A named constant loaded from a file. + * + * This is immutable. + * + * @author bratseth + */ +class Constant { + + private final String name; + private final Tensor value; + + Constant(String name, Tensor value) { + this.name = name; + this.value = value; + } + + public String name() { return name; } + + public Tensor value() { return value; } + +} |