From 79249558316f0ae5c677c311ac8ac100e6ba3c08 Mon Sep 17 00:00:00 2001 From: Arne Juul Date: Wed, 21 Apr 2021 11:43:51 +0000 Subject: use actual dimension names --- .../searchdefinition/RankingExpressionShadowingTestCase.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'config-model') 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"); -- cgit v1.2.3