summaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.cpp')
-rw-r--r--searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.cpp b/searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.cpp
index e0ec4a6fd06..7e0fcdc0ccc 100644
--- a/searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.cpp
+++ b/searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.cpp
@@ -44,7 +44,7 @@ vespalib::string denseSpec("tensor(x[2],y[3])");
Tensor::UP createTensor(const TensorSpec &spec) {
auto value = DefaultTensorEngine::ref().from_spec(spec);
if (value->is_double()) {
- return Tensor::UP(new DenseTensor(ValueType::double_type(), {value->as_double()}));
+ return Tensor::UP(new DenseTensor<double>(ValueType::double_type(), {value->as_double()}));
}
Tensor *tensor = dynamic_cast<Tensor*>(value.get());
ASSERT_TRUE(tensor != nullptr);