blob: 4df6aac359f7faab9d0ee08874f0810f57652c61 (
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 Yahoo. 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; }
}
|