diff options
author | Arnstein Ressem <aressem@gmail.com> | 2022-05-18 13:45:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-18 13:45:07 +0200 |
commit | c080a3c9b1ebd39b947aeddd1e5a0bf5e46d474c (patch) | |
tree | aad434533f9514747e80f339d87b984088e2f1f7 /model-integration/src/test/models | |
parent | a4dbfc43c7df534ee5b032204ef19a7b038d7e3e (diff) |
Revert "Bratseth/model syntax"
Diffstat (limited to 'model-integration/src/test/models')
-rw-r--r-- | model-integration/src/test/models/vespa/example.model | 12 | ||||
-rw-r--r-- | model-integration/src/test/models/vespa/legacy_syntax.model | 26 |
2 files changed, 7 insertions, 31 deletions
diff --git a/model-integration/src/test/models/vespa/example.model b/model-integration/src/test/models/vespa/example.model index 25d27033cfd..269ed83b695 100644 --- a/model-integration/src/test/models/vespa/example.model +++ b/model-integration/src/test/models/vespa/example.model @@ -1,15 +1,17 @@ model example { # All inputs that are not scalar (aka 0-dimensional tensor) must be declared - inputs { - input1: tensor(name{}, x[3]) - input2: tensor(x[3]) - } + input1: tensor(name{}, x[3]) + input2: tensor(x[3]) constants { constant1: tensor(x[3]):{{x:0}:0.5, {x:1}:1.5, {x:2}:2.5} constant2: 3.0 - constant1asLarge tensor(x[3]): file:constant1asLarge.json + } + + constant constant1asLarge { + type: tensor(x[3]) + file: constant1asLarge.json } function foo1() { diff --git a/model-integration/src/test/models/vespa/legacy_syntax.model b/model-integration/src/test/models/vespa/legacy_syntax.model deleted file mode 100644 index 2a5031a5ff9..00000000000 --- a/model-integration/src/test/models/vespa/legacy_syntax.model +++ /dev/null @@ -1,26 +0,0 @@ -model legacy_syntax { - - # Syntax not supported in rank profiles which probably should be removed on Vespa 9 - input1: tensor(name{}, x[3]) - input2: tensor(x[3]) - - constants { - constant1: tensor(x[3]):{{x:0}:0.5, {x:1}:1.5, {x:2}:2.5} - constant2: 3.0 - } - - # Syntax to be removed on Vespa 9 - constant constant1asLarge { - type: tensor(x[3]) - file: constant1asLarge.json - } - - function foo1() { - expression: file:test.expression - } - - function foo2() { - expression: reduce(sum(input1 * input2, name) * constant(constant1asLarge), max, x) * constant2 - } - -}
\ No newline at end of file |