summaryrefslogtreecommitdiffstats
path: root/config-model/src/test/cfg/application/onnx/searchdefinitions/test.sd
diff options
context:
space:
mode:
Diffstat (limited to 'config-model/src/test/cfg/application/onnx/searchdefinitions/test.sd')
-rw-r--r--config-model/src/test/cfg/application/onnx/searchdefinitions/test.sd27
1 files changed, 27 insertions, 0 deletions
diff --git a/config-model/src/test/cfg/application/onnx/searchdefinitions/test.sd b/config-model/src/test/cfg/application/onnx/searchdefinitions/test.sd
new file mode 100644
index 00000000000..d49782ddf39
--- /dev/null
+++ b/config-model/src/test/cfg/application/onnx/searchdefinitions/test.sd
@@ -0,0 +1,27 @@
+# Copyright Verizon Media. 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}
+ }
+ }
+
+}