blob: ba056d362ac31ddfba359ea3f5f9dde8057d01ba (
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
28
29
30
31
32
33
34
35
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package ai.vespa.rankingexpression.importer.operations;
import ai.vespa.rankingexpression.importer.OrderedTensorType;
import com.yahoo.searchlib.rankingexpression.Reference;
import com.yahoo.tensor.functions.TensorFunction;
import java.util.Collections;
import java.util.List;
public class NoOp extends IntermediateOperation {
public NoOp(String modelName, String nodeName, List<IntermediateOperation> inputs) {
super(modelName, nodeName, Collections.emptyList()); // don't propagate inputs
}
@Override
protected OrderedTensorType lazyGetType() {
return null;
}
@Override
protected TensorFunction<Reference> lazyGetFunction() {
return null;
}
@Override
public NoOp withInputs(List<IntermediateOperation> inputs) {
return new NoOp(modelName(), name(), inputs);
}
@Override
public String operationName() { return "NoOp"; }
}
|