diff options
author | Geir Storli <geirst@yahoo-inc.com> | 2016-10-25 13:52:41 +0200 |
---|---|---|
committer | Geir Storli <geirst@yahoo-inc.com> | 2016-10-25 13:52:41 +0200 |
commit | 00030be62c922d06b34877aad9572a2d3c8ce58d (patch) | |
tree | 7e1bb667d2fc1d5ffdda42b998d88e8ae3140b13 /vespalib | |
parent | 95a23496dfd6534986c7895045fee3c2494f94dc (diff) |
Simplify how ValueType is created.
Diffstat (limited to 'vespalib')
-rw-r--r-- | vespalib/src/tests/tensor/dense_dot_product_function/dense_dot_product_function_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vespalib/src/tests/tensor/dense_dot_product_function/dense_dot_product_function_test.cpp b/vespalib/src/tests/tensor/dense_dot_product_function/dense_dot_product_function_test.cpp index e9126433a01..4832cd1fafd 100644 --- a/vespalib/src/tests/tensor/dense_dot_product_function/dense_dot_product_function_test.cpp +++ b/vespalib/src/tests/tensor/dense_dot_product_function/dense_dot_product_function_test.cpp @@ -19,7 +19,7 @@ using namespace vespalib::tensor; ValueType makeType(size_t numCells) { - return ValueType::from_spec(make_string("tensor(x[%zu]", numCells)); + return ValueType::tensor_type({{"x", numCells}}); } std::unique_ptr<tensor_function::Inject> |