diff options
author | Arne Juul <arnej@verizonmedia.com> | 2021-04-21 11:43:51 +0000 |
---|---|---|
committer | Arne Juul <arnej@verizonmedia.com> | 2021-04-23 06:54:56 +0000 |
commit | 79249558316f0ae5c677c311ac8ac100e6ba3c08 (patch) | |
tree | dab85b61e857c957aa09d206686578d5f8cf0e9d /config-model/src | |
parent | 2eb948d4085f099ed4420d4acb0339f907c03fa6 (diff) |
use actual dimension names
Diffstat (limited to 'config-model/src')
-rw-r--r-- | config-model/src/test/java/com/yahoo/searchdefinition/RankingExpressionShadowingTestCase.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/config-model/src/test/java/com/yahoo/searchdefinition/RankingExpressionShadowingTestCase.java b/config-model/src/test/java/com/yahoo/searchdefinition/RankingExpressionShadowingTestCase.java index 8fe4a8fb022..d665b7f20f0 100644 --- a/config-model/src/test/java/com/yahoo/searchdefinition/RankingExpressionShadowingTestCase.java +++ b/config-model/src/test/java/com/yahoo/searchdefinition/RankingExpressionShadowingTestCase.java @@ -159,7 +159,7 @@ public class RankingExpressionShadowingTestCase extends SchemaTestCase { public void testNeuralNetworkSetup() throws ParseException { // Note: the type assigned to query profile and constant tensors here is not the correct type RankProfileRegistry rankProfileRegistry = new RankProfileRegistry(); - QueryProfileRegistry queryProfiles = queryProfileWith("query(q)", "tensor(x[1])"); + QueryProfileRegistry queryProfiles = queryProfileWith("query(q)", "tensor(input[1])"); SearchBuilder builder = new SearchBuilder(rankProfileRegistry, queryProfiles); builder.importString( "search test {\n" + @@ -184,19 +184,19 @@ public class RankingExpressionShadowingTestCase extends SchemaTestCase { " }\n" + " }\n" + " constant W_hidden {\n" + - " type: tensor(x[1])\n" + + " type: tensor(hidden[1])\n" + " file: ignored.json\n" + " }\n" + " constant b_input {\n" + - " type: tensor(x[1])\n" + + " type: tensor(hidden[1])\n" + " file: ignored.json\n" + " }\n" + " constant W_final {\n" + - " type: tensor(x[1])\n" + + " type: tensor(final[1])\n" + " file: ignored.json\n" + " }\n" + " constant b_final {\n" + - " type: tensor(x[1])\n" + + " type: tensor(final[1])\n" + " file: ignored.json\n" + " }\n" + "}\n"); |