diff options
author | Jon Bratseth <bratseth@oath.com> | 2018-09-05 10:08:44 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@oath.com> | 2018-09-05 10:08:44 +0200 |
commit | 599c44acf8e38208f8165087cdd072124e726e8d (patch) | |
tree | d664531491bea286a060685215b4ca94984f91da /model-evaluation/src/main/java/ai/vespa/models/evaluation/Constant.java | |
parent | 57bf51e7af39a0df3807bba7f00a56a08cf6d62d (diff) |
Revert "Merge pull request #6794 from vespa-engine/revert-6788-bratseth/handle-large-constants-take-2"
This reverts commit 7516c7245cbcda860ff977fe111ebfe7e35e0078, reversing
changes made to 793aac11a3cbefd24535595665fc3c3104c1e043.
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; } + +} |