aboutsummaryrefslogtreecommitdiffstats
path: root/model-evaluation/src/main/java/ai/vespa/models/evaluation/Constant.java
blob: 466c171e1575f4531f7e5df1d83016d4b272d8dd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright Vespa.ai. 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; }

}