aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/cfg/application/onnx/schemas/test.sd
blob: a9118b41f90474773ea903cdfd15199d4570946a (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.

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}
        }
    }

}