diff options
author | Jon Bratseth <bratseth@verizonmedia.com> | 2019-11-08 15:23:49 +0100 |
---|---|---|
committer | Jon Bratseth <bratseth@verizonmedia.com> | 2019-11-08 15:23:49 +0100 |
commit | cdcafc6fc8b4417abab8c72bbce5c503533558ea (patch) | |
tree | ea4b1c1a64da79bf42270d1b59f10ae32013b4d8 /config-model | |
parent | df287b9364b8088192146df70f5f4814ff6c94c1 (diff) |
Serialize scalar functions with context
Diffstat (limited to 'config-model')
-rw-r--r-- | config-model/src/test/derived/tensor/rank-profiles.cfg | 17 | ||||
-rw-r--r-- | config-model/src/test/derived/tensor/tensor.sd | 12 |
2 files changed, 29 insertions, 0 deletions
diff --git a/config-model/src/test/derived/tensor/rank-profiles.cfg b/config-model/src/test/derived/tensor/rank-profiles.cfg index d28746bd520..617901130a6 100644 --- a/config-model/src/test/derived/tensor/rank-profiles.cfg +++ b/config-model/src/test/derived/tensor/rank-profiles.cfg @@ -93,3 +93,20 @@ rankprofile[].fef.property[].name "vespa.type.attribute.f4" rankprofile[].fef.property[].value "tensor(x[10],y[20])" rankprofile[].fef.property[].name "vespa.type.attribute.f5" rankprofile[].fef.property[].value "tensor<float>(x[10])" +rankprofile[].name "profile6" +rankprofile[].fef.property[].name "rankingExpression(joinedtensors).rankingScript" +rankprofile[].fef.property[].value "tensor(i[10])(i) * attribute(f4)" +rankprofile[].fef.property[].name "rankingExpression(joinedtensors).type" +rankprofile[].fef.property[].value "tensor(i[10],x[10],y[20])" +rankprofile[].fef.property[].name "vespa.rank.firstphase" +rankprofile[].fef.property[].value "rankingExpression(firstphase)" +rankprofile[].fef.property[].name "rankingExpression(firstphase).rankingScript" +rankprofile[].fef.property[].value "reduce(tensor<float>(d0[1],x[2]):{{d0:0,x:0}:attribute(f6),{d0:0,x:1}:reduce(rankingExpression(joinedtensors), sum)}, sum)" +rankprofile[].fef.property[].name "vespa.type.attribute.f2" +rankprofile[].fef.property[].value "tensor<float>(x[2],y[1])" +rankprofile[].fef.property[].name "vespa.type.attribute.f3" +rankprofile[].fef.property[].value "tensor(x{})" +rankprofile[].fef.property[].name "vespa.type.attribute.f4" +rankprofile[].fef.property[].value "tensor(x[10],y[20])" +rankprofile[].fef.property[].name "vespa.type.attribute.f5" +rankprofile[].fef.property[].value "tensor<float>(x[10])" diff --git a/config-model/src/test/derived/tensor/tensor.sd b/config-model/src/test/derived/tensor/tensor.sd index fa139d1e769..13727d1ec49 100644 --- a/config-model/src/test/derived/tensor/tensor.sd +++ b/config-model/src/test/derived/tensor/tensor.sd @@ -66,4 +66,16 @@ search tensor { } + rank-profile profile6 { + + first-phase { + expression: sum(tensor<float>(d0[1],x[2]):[[attribute(f6), sum(joinedtensors())]]) + } + + function joinedtensors() { + expression: tensor(i[10])(i) * attribute(f4) + } + + } + } |