blob: 043c2593e76727075a98076d4e3b2e59c128edc5 (
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.
search test {
document test {
field document_value type tensor<float>(d0[1]) {
indexing: attribute
}
}
onnx-model my_add {
file: files/add.onnx
input input1: attribute(document_value)
input input2: my_input_func
output output: out
}
rank-profile test {
function my_function() {
expression: tensor<float>(d0[1])(1)
}
first-phase {
expression: onnx(my_add).out{d0:1}
}
}
}
|