summaryrefslogtreecommitdiffstats
path: root/eval
diff options
context:
space:
mode:
authorArne Juul <arnej@verizonmedia.com>2021-02-03 13:18:29 +0000
committerArne Juul <arnej@verizonmedia.com>2021-02-03 13:18:29 +0000
commitd0569028e1f61417080e7e41d364e30b56338998 (patch)
tree67b6a7f8f0d75ed61ec4b3292290dcdedb5309e8 /eval
parentad54d203bc9626e818db5117b7bb0d59a79a8374 (diff)
use GenSpec in vector_from_doubles_function_test
Diffstat (limited to 'eval')
-rw-r--r--eval/src/tests/instruction/vector_from_doubles_function/vector_from_doubles_function_test.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/eval/src/tests/instruction/vector_from_doubles_function/vector_from_doubles_function_test.cpp b/eval/src/tests/instruction/vector_from_doubles_function/vector_from_doubles_function_test.cpp
index 4f4829c3ae1..2371c1e4006 100644
--- a/eval/src/tests/instruction/vector_from_doubles_function/vector_from_doubles_function_test.cpp
+++ b/eval/src/tests/instruction/vector_from_doubles_function/vector_from_doubles_function_test.cpp
@@ -3,7 +3,7 @@
#include <vespa/vespalib/testkit/test_kit.h>
#include <vespa/eval/eval/tensor_function.h>
#include <vespa/eval/instruction/vector_from_doubles_function.h>
-#include <vespa/eval/eval/test/tensor_model.hpp>
+#include <vespa/eval/eval/test/gen_spec.h>
#include <vespa/eval/eval/test/eval_fixture.h>
#include <vespa/vespalib/util/stringfmt.h>
@@ -18,11 +18,11 @@ const ValueBuilderFactory &prod_factory = FastValueBuilderFactory::get();
EvalFixture::ParamRepo make_params() {
return EvalFixture::ParamRepo()
- .add("a", spec(1.0))
- .add("b", spec(2.0))
- .add("c", spec(3.0))
- .add("d", spec(4.0))
- .add("x5", spec({x(5)}, N()));
+ .add("a", GenSpec().seq_bias(1.0).gen())
+ .add("b", GenSpec().seq_bias(2.0).gen())
+ .add("c", GenSpec().seq_bias(3.0).gen())
+ .add("d", GenSpec().seq_bias(4.0).gen())
+ .add("x5", GenSpec().idx("x", 5).gen());
}
EvalFixture::ParamRepo param_repo = make_params();