diff options
Diffstat (limited to 'config-model/src/test/cfg/application/stateless_eval/example.model')
-rw-r--r-- | config-model/src/test/cfg/application/stateless_eval/example.model | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/config-model/src/test/cfg/application/stateless_eval/example.model b/config-model/src/test/cfg/application/stateless_eval/example.model new file mode 100644 index 00000000000..af1c85be4f0 --- /dev/null +++ b/config-model/src/test/cfg/application/stateless_eval/example.model @@ -0,0 +1,34 @@ +model example { + + # All inputs that are not scalar (aka 0-dimensional tensor) must be declared + 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 + } + + 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 + # expression: input1 * input2 + } + + function my_input1() { + expression: tensor(d0[1]):[2] + } + + function my_input2() { + expression: tensor(d0[1]):[3] + } + +}
\ No newline at end of file |