diff options
author | Håvard Pettersen <havardpe@oath.com> | 2017-11-06 15:27:58 +0000 |
---|---|---|
committer | Håvard Pettersen <havardpe@oath.com> | 2017-11-07 14:47:34 +0000 |
commit | 0970129d98a386753e2fa24c559c77392691c633 (patch) | |
tree | aea271d8b97ff24fb3f4020b09d26901b978ddba /searchlib/src/tests/features/constant | |
parent | f5957dbf63a5fcd7df5df9062ef0324a52ed8605 (diff) |
clean up tensor engine API
make Tensor a subclass of Value
Diffstat (limited to 'searchlib/src/tests/features/constant')
-rw-r--r-- | searchlib/src/tests/features/constant/constant_test.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/searchlib/src/tests/features/constant/constant_test.cpp b/searchlib/src/tests/features/constant/constant_test.cpp index a10f76e25ba..4a88fde58ce 100644 --- a/searchlib/src/tests/features/constant/constant_test.cpp +++ b/searchlib/src/tests/features/constant/constant_test.cpp @@ -19,7 +19,6 @@ using namespace search::features; using vespalib::eval::Function; using vespalib::eval::Value; using vespalib::eval::DoubleValue; -using vespalib::eval::TensorValue; using vespalib::eval::TensorSpec; using vespalib::eval::ValueType; using vespalib::tensor::DefaultTensorEngine; @@ -39,7 +38,7 @@ Tensor::UP createTensor(const TensorCells &cells, } Tensor::UP make_tensor(const TensorSpec &spec) { - auto tensor = DefaultTensorEngine::ref().create(spec); + auto tensor = DefaultTensorEngine::ref().from_spec(spec); return Tensor::UP(dynamic_cast<Tensor*>(tensor.release())); } @@ -80,7 +79,7 @@ struct ExecFixture ValueType type(tensor->getType()); test.getIndexEnv().addConstantValue(name, std::move(type), - std::make_unique<TensorValue>(std::move(tensor))); + std::move(tensor)); } void addDouble(const vespalib::string &name, const double value) { |