summaryrefslogtreecommitdiffstats
path: root/config-model/src/test/derived/schemainheritance
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2022-05-13 08:51:25 +0200
committerJon Bratseth <bratseth@gmail.com>2022-05-13 08:51:25 +0200
commitefc33e32e7a3afe91d50b963a2adce00b799c223 (patch)
tree1676ce2c8614dd9aac72444d0eb1fdc2ed1f1ae5 /config-model/src/test/derived/schemainheritance
parentfa7c1ee9d68b01d4501f08b9ea937f066fb3e45e (diff)
Derive constants from global profiles
Diffstat (limited to 'config-model/src/test/derived/schemainheritance')
-rw-r--r--config-model/src/test/derived/schemainheritance/parent.sd11
-rw-r--r--config-model/src/test/derived/schemainheritance/ranking-constants.cfg6
2 files changed, 13 insertions, 4 deletions
diff --git a/config-model/src/test/derived/schemainheritance/parent.sd b/config-model/src/test/derived/schemainheritance/parent.sd
index 51b11dad444..4d247a570a6 100644
--- a/config-model/src/test/derived/schemainheritance/parent.sd
+++ b/config-model/src/test/derived/schemainheritance/parent.sd
@@ -23,11 +23,14 @@ schema parent {
indexing: input pf1 | lowercase | index | attribute | summary
}
rank-profile parent_profile {
+ constants {
+ parent_constant tensor<float>(x{},y{}): file:constants/my_constant_tensor_file.json
+ }
}
- constant parent_constant {
- file: constants/my_constant_tensor_file.json
- type: tensor<float>(x{},y{})
- }
+# constant parent_constant { (old syntax equivalent to the above)
+# file: constants/my_constant_tensor_file.json
+# type: tensor<float>(x{},y{})
+# }
onnx-model parent_model {
file: small_constants_and_functions.onnx
}
diff --git a/config-model/src/test/derived/schemainheritance/ranking-constants.cfg b/config-model/src/test/derived/schemainheritance/ranking-constants.cfg
new file mode 100644
index 00000000000..9b34e3f1837
--- /dev/null
+++ b/config-model/src/test/derived/schemainheritance/ranking-constants.cfg
@@ -0,0 +1,6 @@
+constant[].name "parent_constant"
+constant[].fileref "constants/my_constant_tensor_file.json"
+constant[].type "tensor<float>(x{},y{})"
+constant[].name "child_constant"
+constant[].fileref "constants/my_constant_tensor_file.json"
+constant[].type "tensor<float>(x{},y{})"